isFasterRoute

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.

Return

true if the new route is considered faster, false if not

Parameters

response

provided by RouteFetcher

routeProgress

current route progress