create

fun create(offRouteLocationsCounterThreshold: Int = DEFAULT_OFF_ROUTE_LOCATIONS_COUNTER_THRESHOLD, offRouteProgressDifferenceThreshold: Distance = DEFAULT_OFF_ROUTE_PROGRESS_DIFFERENT_THRESHOLD): RouteTrackingEngine

Creates RouteTrackingEngine with default configuration.

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

Parameters

offRouteLocationsCounterThreshold

The threshold for consecutive location updates that are off the route before considering the route to be unfollowed. The default value is DEFAULT_OFF_ROUTE_LOCATIONS_COUNTER_THRESHOLD.

offRouteProgressDifferenceThreshold

The threshold for the difference between two last route progresses. 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. The default value is DEFAULT_OFF_ROUTE_PROGRESS_DIFFERENT_THRESHOLD.

Throws