OptionalendPointIndex?: numberIndex where this leg ends in the route coordinates.
Only present if the route polyline geometry is available.
OptionalstartPointIndex?: numberIndex where this leg starts in the route coordinates.
Only present if the route polyline geometry is available.
Summary statistics for this leg.
Contains departure/arrival times, distances, durations, and consumption estimates specifically for this leg of the journey.
Route section representing a leg between waypoints.
A leg is the portion of route between two consecutive non-circle waypoints. This is a top-level section that encompasses the entire journey segment.