Leg
¶
Source code in docs_src/capo_location/types/leg.py
distance
instance-attribute
¶
distance: SensitiveDouble
The distance between the leg's StartPosition and EndPosition along a calculated route.
-
The default measurement is
Kilometersunless the request specifies aDistanceUnitofMiles.
duration_seconds
instance-attribute
¶
duration_seconds: SensitiveDouble
The estimated travel time between the leg's StartPosition and EndPosition. The travel mode and departure time that you specify in the request determines the calculated time.
end_position
instance-attribute
¶
end_position: Position
The terminating position of the leg. Follows the format [longitude,latitude].
If the EndPosition isn't located on a road, it's snapped to a nearby road.
geometry
instance-attribute
¶
geometry: NotRequired[LegGeometry]
Contains the calculated route's path as a linestring geometry.
start_position
instance-attribute
¶
start_position: Position
The starting position of the leg. Follows the format [longitude,latitude].
If the StartPosition isn't located on a road, it's snapped to a nearby road.