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
Currently not in use. It will be deleted in the future.
Throws
if offRouteLocationsCounterThreshold is not greater than 0.