mapDirectionsRouteLegAnnotation
fun mapDirectionsRouteLegAnnotation(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 LegAnnotation to create the speed and position estimates for the replay locations.
Return
Parameters
directionsRoute
the DirectionsRoute containing information about a route