-api-id | -api-type |
---|---|
T:Windows.Services.Maps.MapRouteRestrictions |
winrt enum |
Specifies the restrictions applied to a route. This enumeration provides values for certain parameters of some overloads of the GetDrivingRouteAsync and GetDrivingRouteFromWaypointsAsync methods.
No restrictions are applied to the route.
Avoid highways.
Avoid toll roads.
Avoid ferries.
Avoid tunnels.
Avoid dirt roads.
Avoid motorail train services.
Important
Bing Maps for Enterprise service retirement
The UWP MapControl and map services from the Windows.Services.Maps namespaces rely on Bing Maps. Bing Maps for Enterprise is deprecated and will be retired, at which point the MapControl and services will no longer receive data.
For more information, see the Bing Maps Developer Center and Bing Maps documentation.
Your 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.