FasterRouteDetector

Constructors

Link copied to clipboard
constructor(navigationOptions: MapLibreNavigationOptions)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun isFasterRoute(response: DirectionsResponse, routeProgress: RouteProgress): Boolean

This method will be used to determine if the route retrieved is faster than the one that's currently being navigated.

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

This method determine if a new DirectionsResponse should be retrieved by RouteFetcher.