MapRouteRestrictions 枚举

定义

指定应用于路由的限制。 此枚举为 GetDrivingRouteAsyncGetDrivingRouteFromWaypointsAsync 方法的某些重载的某些参数提供值。

此枚举支持其成员值的按位组合。

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
继承
MapRouteRestrictions
属性

Windows 要求

设备系列
Windows 10 (在 10.0.10240.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v1.0 中引入)

字段

DirtRoads 16

避免土路。

Ferries 4

避免渡轮。

Highways 1

避开高速公路。

Motorail 32

避免使用机动列车服务。

None 0

路由没有应用任何限制。

TollRoads 2

避免收费公路。

Tunnels 8

避免隧道。

注解

通用 Windows 应用必须先进行身份验证,然后才能使用 Windows.Services.Maps 命名空间中的 MapControl 和地图服务。 若要对应用进行身份验证,必须指定地图身份验证密钥。

请参阅 请求映射身份验证密钥

适用于

另请参阅