mapDirectionsRouteGeometry

fun mapDirectionsRouteGeometry(directionsRoute: DirectionsRoute): List<ReplayEventBase>

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

ReplayEventBase

Parameters

directionsRoute

the DirectionsRoute containing information about a route