computeNextDurations

open fun computeNextDurations(route: Route, times: List<Long>, listener: Router.RouteDurationListener)

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

open fun computeNextDurations(route: Route, times: List<Long>, listener: Router.RouteDurationListener, @Nullable() executor: Executor)

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

executor

executor which will execute the listener's callbacks