RouteOptimization 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 Bing Maps REST Services. 

Contains values that represent route calculation methods.

public enum RouteOptimization

Member

Description

MinimizeDistance

The route is calculated to minimize the total distance between pairs of waypoints and does not optimize the total distance for the route.

MinimizeTime

The route is calculated to minimize the total time.

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 the distance between waypoints. Traffic information is not used.

MinimizeDistance

TrafficBasedRouteAndTime

A fault is thrown.

MinimizeDistance

TrafficBasedTime

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

Show: