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)
Parameters
Type Name Description
Location location

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

CancellationToken cancellationToken

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

Returns
Type Description
Task

A Task with no return value.

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.8
.NET100.13 - 300.0
.NET Windows100.13 - 300.0
.NET Android200.2 - 300.0
.NET iOS200.0 - 300.0
.NET Framework100.6 - 200.8
Xamarin.Android100.6 - 100.14
Xamarin.iOS100.6 - 100.15
UWP100.6 - 200.8
Relevant samples
Navigate route: Use a routing service to navigate between points.
In this article
Provide feedback
Back to top Copyright © 2025 Esri.