Show / Hide Table of Contents

Constructor RouteTracker

RouteTracker(RouteResult, Int32, Boolean)

Initializes a new instance of the RouteTracker class using a specific route from a route result with an option to specify treating coincident stops as a single destination.

Declaration
public RouteTracker(RouteResult routeResult, int routeIndex, bool skipCoincidentStops)
Parameters
Type Name Description
RouteResult routeResult

A RouteResult generated from route task solve. The RouteResult must contain at least one Route (with Stops and DirectionManeuvers.

System.Int32 routeIndex

The zero-based index into the list of Routes, selecting a Route to track. The selected Route must contain Stops and DirectionManeuvers.

System.Boolean skipCoincidentStops

true if coincident stops (multiple stops in a row at the same location) should be treated as a single destination, false otherwise. When true, if there are multiple stops in a row at the same network location, the new voice guidance event will fire a single time and calling SwitchToNextDestinationAsync(CancellationToken) will skip over the other coincident stops, setting the state to the next relevant direction maneuver. If false, each stop will be treated as a unique destination. If your route does not have coincident stops, this parameter will have no effect.

Remarks

An exception is thrown if the Route is not found or if it lacks Stops or DirectionManeuvers.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.10 - 200.7
.NET100.13 - 200.7
.NET Windows100.13 - 200.7
.NET Android200.0 - 200.7
.NET iOS200.0 - 200.7
.NET Framework100.10 - 200.7
Xamarin.Android100.10 - 100.15
Xamarin.iOS100.10 - 100.15
UWP100.10 - 200.7
In This Article
Back to top Copyright © 2022 Esri.