shouldCheckFasterRoute

abstract fun shouldCheckFasterRoute(location: Location, routeProgress: RouteProgress): Boolean

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

It will also be called every time the NavigationEngine gets a valid Location update.

The most recent snapped location and route progress are provided. Both can be used to determine if a new route should be fetched or not.

Return

true if should check, false if not

Since

0.9.0

Parameters

location

current snapped location

routeProgress

current route progress