Export (0) Print
Expand All
Expand Minimize

DirectionsRequestOptions class

Bing

Contains options for a route calculation request.

Constructors

Definition Description

DirectionsRequestOptions()

Initializes a new instance of the DirectionsRequestOptions class.

DirectionsRequestOptions( DistanceUnitOption distanceUnitOption, MaxSolutionsOption maxSolutionsOption, AvoidOption avoidOption, uint routeIndex, RouteModeOption routeModeOption, OptimizeOption optimizeOption, TimeTypeOption timeTypeOption, DateTimeOffset transitTime, bool metadataForAlternates, bool formattedInstruction)

Initializes a new instance of the DirectionsRequestOptions class with the specified options.

Public Properties

Name Type Description

Avoid

AvoidOption

Gets or sets transportation features to avoid when calculating driving directions.

DistanceUnit

DistanceUnitOption

Gets or sets the distance unit to use when returning route distances.

FormattedInstruction

bool

Gets or sets a bool indicating whether to include formatted instructions in the route. Formatted instructions make it easier to display directions within a web page. The default value is false.

MaxSolutions

MaxSolutionsOption

Gets or sets the maximum number of transit or driving routes to return. This property is supported for the driving and transit routes between two waypoints in the United States, Canada, Mexico, United Kingdom, Australia and India.

MetadataForAlternates

bool

Gets or sets a bool indicating whether to use metadata for alternate routes. When this property is set to true, alternate route information is not downloaded and performance may be improved.

Optimize

OptimizeOption

Gets or sets how the route calculation is optimized.

RouteIndex

uint

Gets or sets the default route index to use when more than one route is returned in the response.

RouteMode

RouteModeOption

Gets or sets whether the mode of travel for the route is driving, walking, or transit.

TimeType

TimeTypeOption

Gets or sets how to interpret the date and transit time value that is specified by the DateTime parameter. This property is required when the travel mode is transit.

TransitType

DateTimeOffset

Gets or sets the arrival or departure time to use when requesting a transit route. This property is required when the travel mode is transit.

Show:
© 2014 Microsoft