MapRouteRestrictions
MapRouteRestrictions
MapRouteRestrictions
MapRouteRestrictions
Enum
Definition
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 MapRouteRestrictionspublic enum MapRouteRestrictionsPublic Enum MapRouteRestrictions// This API is not available in Javascript.
- Attributes
Windows 10 requirements
| Device family |
Windows 10 (introduced v10.0.10240.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v1)
|
Fields
| DirtRoads DirtRoads DirtRoads DirtRoads | Avoid dirt roads. |
| Ferries Ferries Ferries Ferries | Avoid ferries. |
| Highways Highways Highways Highways | Avoid highways. |
| Motorail Motorail Motorail Motorail | Avoid motorail train services. |
| None None None None | No restrictions are applied to the route. |
| TollRoads TollRoads TollRoads TollRoads | Avoid toll roads. |
| Tunnels Tunnels Tunnels Tunnels | Avoid tunnels. |
Remarks
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.