RouteLeg Object

Bing
 

Represents a leg of a route. A route leg is the part of the route between two stop waypoints.

NameTypeDescription
endTimeDateThe end time of the route leg. This property only applies when the routeMode of the DirectionsRequestOptions is set to transit.
endWaypointLocationLocationThe location of the last waypoint of this leg.
itineraryItemsDirectionsStep[]The directions steps associated with this route leg.
originalRouteIndexnumberThe index of the route to which this route leg belongs.
startTimeDateThe start time of the route leg. This property only applies when the routeMode of the DirectionsRequestOptions is set to transit.
startWaypointLocationLocationThe location of the first waypoint of this route leg.
subLegsRouteSubLeg[]The sub legs of this route leg. A sub leg of a route is the part of the route between a stop point and a via point or between two via points.
summaryRouteSummaryThe summary which describes this route leg.
Show: