Share via


MapRouteFinderResult.AlternateRoutes 属性

定义

获取相同起点和终点之间的备用路由 ((如果可用) )。

public:
 property IVectorView<MapRoute ^> ^ AlternateRoutes { IVectorView<MapRoute ^> ^ get(); };
IVectorView<MapRoute> AlternateRoutes();
public IReadOnlyList<MapRoute> AlternateRoutes { get; }
var iVectorView = mapRouteFinderResult.alternateRoutes;
Public ReadOnly Property AlternateRoutes As IReadOnlyList(Of MapRoute)

属性值

相同起点和终点之间的 MapRoute 类型的备用路由 ((如果可用) );否则为 null

注解

MaxAlternateRouteCount 设置为 1 或更大时, GetDrivingRouteAsync 方法将提供相同起点和终点之间的其他路由, () 可用。

注意

某些替代路由可能会违反路由限制。 使用 ViolationedRestrictions 属性可以检查冲突。

适用于