Skip to content

Latest commit

 

History

History
53 lines (37 loc) · 1.85 KB

maprouterestrictions.md

File metadata and controls

53 lines (37 loc) · 1.85 KB
-api-id -api-type
T:Windows.Services.Maps.MapRouteRestrictions
winrt enum

MapRouteRestrictions

-description

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

-enum-fields

-field None:0

No restrictions are applied to the route.

-field Highways:1

Avoid highways.

-field TollRoads:2

Avoid toll roads.

-field Ferries:4

Avoid ferries.

-field Tunnels:8

Avoid tunnels.

-field DirtRoads:16

Avoid dirt roads.

-field Motorail:32

Avoid motorail train services.

-remarks

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.

See Request a maps authentication key.

-examples

-see-also

Display routes and directions on a map