RouteLeg class

Bing
 

Represents the section of a route between two waypoints.

Name

Type

Description

ActualEnd

Location

Gets the location that was used as the end location for the route leg. In most cases, the actual end location is the same as the requested waypoint location. However, if a waypoint is not close to a road, a new location is chosen on the nearest road, which becomes the actual end location.

ActualStart

Location

Gets the location that was used as the start location for the route leg. In most cases, the actual start location is the same as the requested waypoint location. However, if a waypoint is not close to a road, a new location is chosen on the nearest road, which becomes the actual start location.

AlternateVias

GeocodeLocationCollection

Gets alternate via points for requesting alternate routes with the original start and end points.

Cost

double

Gets the cost of the route leg.

Description

string

Gets a description of the route leg.

EndLocation

GeocodeLocation

Gets the location of the end waypoint for the route leg. This property is only available if the waypoint is a landmark or an address.

EndTime

DateTimeOffset

Gets the end time of the route leg.

ItineraryItems

ItineraryItemCollection

Gets the itinerary items that belong to this route leg.

ResultContainsEndTime

bool

Gets a bool indicating whether the end time is included in the route result.

ResultContainsStartTime

bool

Gets a bool indicating whether the start time is included in the route result.

StartLocation

GeocodeLocation

Gets the location of the start waypoint for the route leg. This property is only available if the waypoint is a landmark or an address.

StartTime

DateTimeOffset

Gets the start time of the route leg.

TravelDistance

double

Gets the total travel distance of the route leg.

TravelDuration

double

Gets the total travel time of the route leg, in seconds.

Show: