title | description | ms.custom | ms.date | ms.reviewer | ms.suite | ms.tgt_pltfrm | ms.topic | ms.assetid | caps.latest.revision | author | ms.author | manager | ms.service |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
RouteLeg Object | Microsoft Docs |
Describes the RouteLeg object, which represents the leg of a route, and provides descriptions for each of its properties. |
02/28/2018 |
article |
46590a2f-9229-4f64-a008-9ab5bcba0658 |
2 |
rbrundritt |
richbrun |
stevelom |
bing-maps |
Represents a leg of a route. A route leg is the part of the route between two stop waypoints.
Name | Type | Description |
---|---|---|
endTime | Date | The end time of the route leg. This property only applies when the routeMode of the DirectionsRequestOptions is set to transit. |
endWaypointLocation | Location | The location of the last waypoint of this leg. |
itineraryItems | DirectionsStep[] | The directions steps associated with this route leg. |
originalRouteIndex | number | The index of the route to which this route leg belongs. |
startTime | Date | The start time of the route leg. This property only applies when the routeMode of the DirectionsRequestOptions is set to transit. |
startWaypointLocation | Location | The location of the first waypoint of this route leg. |
subLegs | RouteSubLeg[] | 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. |
summary | RouteSummary | The summary which describes this route leg. |