Skip To Content ArcGIS for Developers Sign In Dashboard

RouteTrackerLocationDataSource Class

class Esri::ArcGISRuntime::RouteTrackerLocationDataSource

A location data source that uses a route tracker and a generic location data source to output locations snapped to a route. More...

Header: #include <RouteTrackerLocationDataSource>
Since: Esri::ArcGISRuntime 100.9
Inherits: Esri::ArcGISRuntime::AbstractLocationDataSource

This class was introduced in Esri::ArcGISRuntime 100.9.

Public Functions

RouteTrackerLocationDataSource(Esri::ArcGISRuntime::RouteTracker *routeTracker, Esri::ArcGISRuntime::AbstractLocationDataSource *locationDataSource, QObject *parent = nullptr)
RouteTrackerLocationDataSource(Esri::ArcGISRuntime::RouteTracker *routeTracker, QObject *parent = nullptr)
virtual ~RouteTrackerLocationDataSource() override

Protected Slots

virtual void onStart() override
virtual void onStop() override

Detailed Description

This data source will pass the locations from the AbstractLocationDataSource::locationChanged event to the RouteTracker::trackLocation. The TrackingStatus::displayLocation will then be returned in this data source's locationChanged event. The output locations will be snapped to the route when "on route".

Member Function Documentation

RouteTrackerLocationDataSource::RouteTrackerLocationDataSource(Esri::ArcGISRuntime::RouteTracker *routeTracker, Esri::ArcGISRuntime::AbstractLocationDataSource *locationDataSource, QObject *parent = nullptr)

Creates a RouteTrackerLocationDataSource object.

RouteTrackerLocationDataSource::RouteTrackerLocationDataSource(Esri::ArcGISRuntime::RouteTracker *routeTracker, QObject *parent = nullptr)

Creates a RouteTrackerLocationDataSource object using the passed in RouteTracker and the platform's default location data source.

[override virtual protected slot] void RouteTrackerLocationDataSource::onStart()

Reimplements: AbstractLocationDataSource::onStart().

Reacts to start requests by starting the location tracking.

Note: You should not call this method directly - use start instead.

[override virtual protected slot] void RouteTrackerLocationDataSource::onStop()

Reimplements: AbstractLocationDataSource::onStop().

Reacts to stop requests by stopping the location tracking.

Note: You should not call this method directly - use stop instead.

[override virtual] RouteTrackerLocationDataSource::~RouteTrackerLocationDataSource()

Destructor.


Feedback on this topic?