mapDirectionsRouteGeometry
fun mapDirectionsRouteGeometry(directionsRoute: DirectionsRoute): List<ReplayEventBase>
Content copied to clipboard
Take a DirectionsRoute and map it to events that can be replayed by the MapboxReplayer. Uses the Directions API DirectionsRoute.geometry to calculate the speed and position estimates for the replay locations.
Return
Parameters
directionsRoute
the DirectionsRoute containing information about a route