Constructor RouteTracker
RouteTracker(RouteResult, int, bool)
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. The new route tracker will have a navigation mode of Driving.
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). |
| int | routeIndex | The zero-based index into the list of Routes, selecting a Route to track. The selected Route must contain Stops and DirectionManeuvers. |
| bool | skipCoincidentStops |
|
Remarks
An exception is thrown if the Route is not found or if it lacks Stops or DirectionManeuvers.
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET Standard 2.0 | 100.10 - 200.8 |
| .NET | 100.13 - 300.0 |
| .NET Windows | 100.13 - 300.0 |
| .NET Android | 200.0 - 300.0 |
| .NET iOS | 200.0 - 300.0 |
| .NET Framework | 100.10 - 200.8 |
| Xamarin.Android | 100.10 - 100.15 |
| Xamarin.iOS | 100.10 - 100.15 |
| UWP | 100.10 - 200.8 |
RouteTracker(RouteResult, int, bool, NavigationMode)
Initializes a new instance of the RouteTracker class from a specified route in a route result, an option for handling coincident stops, and a navigation mode. The default navigation mode is Driving.
Declaration
public RouteTracker(RouteResult routeResult, int routeIndex, bool skipCoincidentStops, NavigationMode navigationMode)
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). |
| int | routeIndex | Zero-based index into the array of Routes, selecting a Route to track. The selected Route must contain Stops and DirectionManeuvers. |
| bool | skipCoincidentStops |
|
| NavigationMode | navigationMode | The navigation mode to use for the route tracking. This determines how the route is followed and how navigation events are triggered. |
Remarks
An exception is thrown if the Route is not found or if it lacks Stops and DirectionManeuvers.
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET | 300 |
| .NET Windows | 300 |
| .NET Android | 300 |
| .NET iOS | 300 |