getTripDetails

Calculates trip details based on NavigationRoute. The return value contains leg time, leg duration and estimated time to arrival for each RouteLeg in NavigationRoute.directionsRoute in the form of RouteLegTripOverview. It also contains totalTime, totalDistance and totalEstimatedTimeToArrival for the entire NavigationRoute.directionsRoute

The API would return TripOverviewError in case the NavigationRoute does not have RouteLeg or it does have RouteLeg but RouteLeg.duration or RouteLeg.distance is null.

Return

an update to be rendered with MapboxTripProgressView

Parameters

route

to be used to compute the trip details for.