mapDirectionsRouteLegAnnotation

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

Take a DirectionsRoute and map it to events that can be replayed by the MapboxReplayer. Uses the Directions API LegAnnotation to create the speed and position estimates for the replay locations.

Return

ReplayEventBase

Parameters

directionsRoute

the DirectionsRoute containing information about a route