compute Next Durations
open fun computeNextDurations(route: Route, times: List<Long>, listener: Router.RouteDurationListener)
Content copied to clipboard
Compute the durations of a route in any given time(s).Note that the speed profiles change each 15 minutes so it's ineffective to request smaller intervals.
Parameters
route
Route a route for which the duration(s) should be computed
times
an array of UTC times in seconds in which the route should be computed
listener
open fun computeNextDurations(route: Route, times: List<Long>, listener: Router.RouteDurationListener, @Nullable() executor: Executor)
Content copied to clipboard
Compute the duration of a route in any given time(s).Note that the speed profiles change each 15 minutes so it's ineffective to request smaller intervals.
Parameters
route
Route a route for which the duration(s) should be computed
times
an array of UTC times in seconds in which the route should be computed
listener
executor
executor which will execute the listener's callbacks