Show / Hide Table of Contents

Method TrackLocationAsync

TrackLocationAsync(Location, CancellationToken)

Provides route tracking status relative to the provided location.

Declaration
public Task TrackLocationAsync(Location location, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type Name Description
Location location

A location used to evaluate status and progress along the route.

System.Threading.CancellationToken cancellationToken

Optional token that may be used to cancel the async tracking operation.

Returns
Type Description
System.Threading.Tasks.Task

The task object representing the asynchronous operation.

Remarks

The location generally comes from a GPS but may also be a simulated or manually entered location. It must have valid values for X and Y coordinates, speed (in meters per second), course (in degrees), and a timestamp. Events fired for RouteTracker when completed.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.6 - 200.7
.NET100.13 - 200.7
.NET Windows100.13 - 200.7
.NET Android200.2 - 200.7
.NET iOS200.0 - 200.7
.NET Framework100.6 - 200.7
Xamarin.Android100.6 - 100.14
Xamarin.iOS100.6 - 100.15
UWP100.6 - 200.7
Relevant samples
Navigate route: Use a routing service to navigate between points.
In This Article
Back to top Copyright © 2022 Esri.