MapRouteLeg 类

定义

表示) 沿路线的两个航点之间移动所需的操作 (操作集。

public ref class MapRouteLeg sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class MapRouteLeg final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class MapRouteLeg
Public NotInheritable Class MapRouteLeg
继承
Object Platform::Object IInspectable MapRouteLeg
属性

Windows 要求

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

注解

MapRouteLeg 对象的集合通过 MapRoute 对象的 Legs 属性返回。 调用 MapRouteFinder 类的方法时,通过 MapRouteFinderResultRoute 属性返回 MapRoute 对象。

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

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

版本历史记录

Windows 版本 SDK 版本 增值
1703 15063 DurationWithoutTraffic
1703 15063 TrafficCongestion

属性

BoundingBox

获取包含路线段的边界框。

DurationWithoutTraffic

获取在没有流量的情况下遍历路由所需的估计时间。

EstimatedDuration

获取遍历路线段所需的估计时间。

LengthInMeters

获取路线段的长度(以米为单位)。

Maneuvers

获取与路线段关联的机动列表。

Path

获取路线段的路径。

TrafficCongestion

获取地图路线段沿线的交通拥堵程度。

适用于

另请参阅