RouteOptions.TrafficUsage Property

 

A TrafficUsage Enumeration value specifying how traffic information is used in the route calculation. Optional. The default value is TrafficUsage.None. Set this property before making a service request.

Syntax

public TrafficUsage TrafficUsage { set; get; }
Public Property TrafficUsage As TrafficUsage

Remarks

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.