MapRouteRestrictions MapRouteRestrictions MapRouteRestrictions MapRouteRestrictions Enum


Specifies the restrictions applied to a route. This enumeration provides values for certain parameters of some overloads of the GetDrivingRouteAsync and GetDrivingRouteFromWaypointsAsync methods.

This enumeration has a System.FlagsAttribute attribute that allows a bitwise combination of its member values.

public : enum class MapRouteRestrictions
enum class winrt::Windows::Services::Maps::MapRouteRestrictions : uint32_t
public enum MapRouteRestrictions
Public Enum MapRouteRestrictions

Windows 10 requirements

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


DirtRoads DirtRoads DirtRoads DirtRoads 16

Avoid dirt roads.

Ferries Ferries Ferries Ferries 4

Avoid ferries.

Highways Highways Highways Highways 1

Avoid highways.

Motorail Motorail Motorail Motorail 32

Avoid motorail train services.

None None None None 0

No restrictions are applied to the route.

TollRoads TollRoads TollRoads TollRoads 2

Avoid toll roads.

Tunnels Tunnels Tunnels Tunnels 8

Avoid tunnels.


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.

See also