OffRouteDetector

open class OffRouteDetector(var callback: OffRouteCallback? = null) : OffRoute

Parameters

callback

a callback that is fired for different off-route scenarios.

Constructors

Link copied to clipboard
constructor(callback: OffRouteCallback? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

A callback that is fired for different off-route scenarios.

Functions

Link copied to clipboard

Clears the RingBuffer used for tracking our recent distances away from the maneuver that is being driven towards.

Link copied to clipboard
open override fun isUserOffRoute(location: Location, routeProgress: RouteProgress, options: MapLibreNavigationOptions): Boolean

Method in charge of running a series of test based on the device current location and the user progress along the route.