create static method
- required RouteResult routeResult,
- required int routeIndex,
- required bool skipCoincidentStops,
Creates a Route Tracker using a specific route from a route result with an option to specify treating coincident stops as a single destination.
An exception is thrown if the ArcGISRoute is not found or if it lacks ArcGISRoute.stops and ArcGISRoute.directionManeuvers.
Parameters:
routeResult
— A RouteResult generated from route task solve. The RouteResult must contain at least one ArcGISRoute (with ArcGISRoute.stops and ArcGISRoute.directionManeuvers).routeIndex
— Zero-based index into the array of RouteResult.routes, selecting an ArcGISRoute to track. The selected ArcGISRoute must contain ArcGISRoute.stops and ArcGISRoute.directionManeuvers.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 RouteTracker.switchToNextDestination 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.