RouteOptions Class

 

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 properties used to refine a route service request.

Syntax

public class RouteOptions
Public Class RouteOptions

Constructor

Name

Description

RouteOptions 

Initializes a new instance of a RouteOptions object.

Public Properties

Name

Description

Mode 

A TravelMode Enumeration value specifying the type of directions to return. Optional. The default value is TravelMode.Driving.

Optimization 

A RouteOptimization Enumeration value specifying the calculation method to use. Optional. The default value is RouteOptimization.MinimizeTime.

RoutePathType 

A RoutePathType Enumeration value specifying the type of route path to return. Optional. The default value is RoutePathType.None.

TrafficUsage 

A TrafficUsage Enumeration value specifying how traffic information is used in the route calculation. Optional. The default value is TrafficUsage.None.

See Also

RouteRequest.Options Property
MajorRoutesRequest.Options Property