|
Online Maps v3
|
Single leg of the journey from the origin to the destination in the calculated route. More...
Public Attributes | |
| Step[] | steps |
| Array of steps denoting information about each separate step of the leg of the journey. | |
| TextValue< int > | duration |
| Total duration of this leg. | |
| TextValue< int > | duration_in_traffic |
| Total duration of this leg. This value is an estimate of the time in traffic based on current and historical traffic conditions. | |
| TextValue< int > | distance |
| Total distance covered by this leg. | |
| OnlineMapsVector2d | start_location |
| Coordinates of the origin of this leg. Because the Directions API calculates directions between locations by using the nearest transportation option (usually a road) at the start and end points, start_location may be different than the provided origin of this leg if, for example, a road is not near the origin. | |
| OnlineMapsVector2d | end_location |
| Coordinates of the given destination of this leg. Because the Google Maps Directions API calculates directions between locations by using the nearest transportation option (usually a road) at the start and end points, end_location may be different than the provided destination of this leg if, for example, a road is not near the destination. | |
| string | start_address |
| Human-readable address (typically a street address) resulting from reverse geocoding the start_location of this leg. | |
| string | end_address |
| Human-readable address (typically a street address) from reverse geocoding the end_location of this leg. | |
| TextValueZone< string > | arrival_time |
| Estimated time of arrival for this leg. This property is only returned for transit directions. | |
| TextValueZone< string > | departure_time |
| Estimated time of departure for this leg, specified as a Time object. The departure_time is only available for transit directions. | |
Single leg of the journey from the origin to the destination in the calculated route.