MapRouteFinderResult.AlternateRoutes Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.