Skip to content

Commit 64a6009

Browse files
committed
#1 Work in progress:
-Documentation test [ci skip]
1 parent a0f2dea commit 64a6009

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

ezgpx/utils/algorithms.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ def ramer_douglas_peucker(points: list, epsilon: float = degrees(2/EARTH_RADIUS)
88
"""
99
Simplify a curve using the Ramer-Douglas-Peucker algorithm.
1010
Source: https://en.wikipedia.org/wiki/Ramer%E2%80%93Douglas%E2%80%93Peucker_algorithm
11-
12-
Args:
13-
points (list[TrackPoint]): List of points defining the curve.
14-
epsilon (float, optional): _description_. Defaults to degrees(2/EARTH_RADIUS) (ie: the angle corresponding to a distance of 2 meters at the surface of the earth).
1511
16-
Returns:
17-
list[TrackPoint]: List of points defining the simplified curve.
12+
:param points: _description_
13+
:type points: list[TrackPoint]
14+
:param epsilon: Ramer-Douglas-Peucker threshold distance (higher value means more simplifications), defaults to degrees(2/EARTH_RADIUS) (ie: the angle corresponding to a distance of 2 meters at the surface of the earth).
15+
:type epsilon: float, optional
16+
:return: List of points defining the simplified curve.
17+
:rtype: list[TrackPoint]
1818
"""
1919
# Find the point with the maximum distance
2020
d_max = 0

0 commit comments

Comments
 (0)