MapRouteDrivingOptions MapRouteDrivingOptions MapRouteDrivingOptions MapRouteDrivingOptions Class

Definition

Represents advanced routing options.

public : sealed class MapRouteDrivingOptions
struct winrt::Windows::Services::Maps::MapRouteDrivingOptions
public sealed class MapRouteDrivingOptions
Public NotInheritable Class MapRouteDrivingOptions
Attributes

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

MapRouteDrivingOptions allows you to specify advanced routing options when using the GetDrivingRouteAsync method.

Your Universal Windows app must be authenticated before it can use the MapControl and map services in the Windows.Services.Maps namespace. To authenticate your app, you must specify a maps authentication key.

See Request a maps authentication key.

Version history

Windows version SDK version Value added
1803 17134 DepartureTime

Constructors

MapRouteDrivingOptions() MapRouteDrivingOptions() MapRouteDrivingOptions() MapRouteDrivingOptions()

Initializes a new instance of the MapRouteDrivingOptions class.

Properties

DepartureTime DepartureTime DepartureTime DepartureTime

Gets or sets the date and time of the departure on a route.

InitialHeading InitialHeading InitialHeading InitialHeading

Gets or sets the preferred start direction of the route from the current location in degrees, where 0 or 360 = North, 90 = East, 180 = South, and 270 = West.

MaxAlternateRouteCount MaxAlternateRouteCount MaxAlternateRouteCount MaxAlternateRouteCount

Gets or sets a value that indicates the maximum number of alternative routes that are to be provided, if available.

RouteOptimization RouteOptimization RouteOptimization RouteOptimization

Gets or sets the optimization applied to the route(s).

RouteRestrictions RouteRestrictions RouteRestrictions RouteRestrictions

Gets or sets the restriction applied to the route(s).