travelTimeUpTo

Calculates the travel time up to a given distance along the route.

If routeOffset is exactly at a charging stop, the travel time up to arrival at that stop is returned, excluding the charging duration at that stop.

Return

A Result containing the travel time up to routeOffset as a Duration, or a RouteDataFailure instance if an error occurred.

Parameters

routeOffset

The distance from the route's start up to which the travel time is calculated.