travelTimeUpTo

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

Important: This is a Public Preview API. It may be changed or removed at any time.

This function returns the travel time from the start of the route up to routeOffset.

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, marking the point up to which the travel time is to be calculated.