Share via


MapRouteFinderResult.AlternateRoutes Property

Definition

Gets alternate routes between the same start and end points (if available).

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)

Property Value

Alternate routes, of type MapRoute, between the same start and end points (if available); otherwise, null.

Remarks

When MaxAlternateRouteCount is set to 1 or greater, the GetDrivingRouteAsync method will provide additional routes between the same start and end points (when available).

Note

Some alternative routes may violate route restrictions. Use the ViolatedRestrictions property to check for violations.

Applies to