Export (0) Print
Expand All

TrafficUsage Enumeration

This documentation is no longer available on MSDN. It is available as a CHM or PDF download. For the newest Geocoding, Imagery, Routing and Traffic services, see the Bing Maps REST Services

Contains values indicating how to use traffic information in the route calculation.

public enum TrafficUsage

Member Description

None

Traffic information is not used in the route calculation.

TrafficBasedRouteAndTime

Traffic information is used to change the route to minimize time.

TrafficBasedTime

Traffic information is used to recalculate the total travel time. The route is not changed.

The following table shows the route calculation that is performed for different values of the RouteOptions.Optimization Property and the RouteOptions.TrafficUsage Property.

Optimization TrafficUsage Route calculation

MinimizeTime

None

The route is calculated to minimize time. Traffic information is not used.

MinimizeTime

TrafficBasedRouteAndTime

The route is calculated using traffic information to minimize the time.

MinimizeTime

TrafficBasedTime

The route is calculated to minimize time, but traffic is only used to calculate the total route time.

MinimizeDistance

None

The route is calculated to minimize distance. Traffic information is not used.

MinimizeDistance

TrafficBasedRouteAndTime

A fault is thrown.

MinimizeDistance

TrafficBasedTime

The route is calculated to minimize distance, but traffic information is only used to calculate the total route time.

Show:
© 2015 Microsoft