RouteTrackingEngineFactory

Responsible for creating default implementation of RouteTrackingEngine.

Important: This is a Public Preview API. It may be changed or removed at any time.

Properties

The default threshold for consecutive location updates that are off the route. Once this number of consecutive off-route updates is reached, it is considered that the route has been unfollowed.

The default threshold for the distance between the last position on the route and the current position on the route. If the next two location updates are in different route legs, and the distance is less than this threshold, the route is considered to be followed, otherwise it is considered to be unfollowed.

Functions

Link copied to clipboard
fun create(offRouteLocationsCounterThreshold: Int = DEFAULT_OFF_ROUTE_LOCATIONS_COUNTER_THRESHOLD, offRouteProgressDifferenceThreshold: Distance = DEFAULT_OFF_ROUTE_PROGRESS_DIFFERENT_THRESHOLD): RouteTrackingEngine

Creates RouteTrackingEngine with default configuration.