Online Maps  v3
OnlineMapsGoogleDirectionsResult.Leg Class Reference

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. More...
 
TextValue< int > duration
 Total duration of this leg. More...
 
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. More...
 
TextValue< int > distance
 Total distance covered by this leg. More...
 
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. More...
 
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. More...
 
string start_address
 Human-readable address (typically a street address) resulting from reverse geocoding the start_location of this leg. More...
 
string end_address
 Human-readable address (typically a street address) from reverse geocoding the end_location of this leg. More...
 
TextValueZone< string > arrival_time
 Estimated time of arrival for this leg. This property is only returned for transit directions. More...
 
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. More...
 

Detailed Description

Single leg of the journey from the origin to the destination in the calculated route.

Member Data Documentation

◆ arrival_time

TextValueZone<string> OnlineMapsGoogleDirectionsResult.Leg.arrival_time

Estimated time of arrival for this leg. This property is only returned for transit directions.

◆ departure_time

TextValueZone<string> OnlineMapsGoogleDirectionsResult.Leg.departure_time

Estimated time of departure for this leg, specified as a Time object. The departure_time is only available for transit directions.

◆ distance

TextValue<int> OnlineMapsGoogleDirectionsResult.Leg.distance

Total distance covered by this leg.

◆ duration

TextValue<int> OnlineMapsGoogleDirectionsResult.Leg.duration

Total duration of this leg.

◆ duration_in_traffic

TextValue<int> OnlineMapsGoogleDirectionsResult.Leg.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.

◆ end_address

string OnlineMapsGoogleDirectionsResult.Leg.end_address

Human-readable address (typically a street address) from reverse geocoding the end_location of this leg.

◆ end_location

OnlineMapsVector2d OnlineMapsGoogleDirectionsResult.Leg.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.

◆ start_address

string OnlineMapsGoogleDirectionsResult.Leg.start_address

Human-readable address (typically a street address) resulting from reverse geocoding the start_location of this leg.

◆ start_location

OnlineMapsVector2d OnlineMapsGoogleDirectionsResult.Leg.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.

◆ steps

Step [] OnlineMapsGoogleDirectionsResult.Leg.steps

Array of steps denoting information about each separate step of the leg of the journey.