Udostępnij za pośrednictwem


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 supports a bitwise combination of its member values.

public enum class MapRouteRestrictions
/// [System.Flags]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
enum class MapRouteRestrictions
[System.Flags]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public enum MapRouteRestrictions
Public Enum MapRouteRestrictions
Inheritance
MapRouteRestrictions
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Fields

Name Value Description
None 0

No restrictions are applied to the route.

Highways 1

Avoid highways.

TollRoads 2

Avoid toll roads.

Ferries 4

Avoid ferries.

Tunnels 8

Avoid tunnels.

DirtRoads 16

Avoid dirt roads.

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.

Applies to

See also