computeNextDurations

fun computeNextDurations(    route: Route,     times: List<Long>,     listener: RouteDurationListener,     executor: Executor? = null): Router.Task

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

List an array of UTC times in seconds in which the route should be computed

executor

executor which will execute the listener's callbacks