Cumulative Arc Length on a Polyline
Compute the total and cumulative arc length of a great-circle polyline route by summing leg lengths, and recover individual leg lengths and inter-waypoint distances from a cumulative-distance table.
Step 1 of 157%
Tutorial
Polylines and Total Arc Length
A polyline route on the sphere is a sequence of waypoints joined by great-circle segments. The -th leg runs from to along the shorter great-circle arc, and has arc length .
The total arc length of the route is the sum of all leg lengths:
For example, a 3-leg route with leg lengths km, km, and km has total length