ReplayRouteMapper
This class converts a DirectionsRoute into events that can be replayed using the MapboxReplayer to navigate a route.
Constructors
Types
Functions
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.
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.
Simulate a driver navigating a polyline string.
Given a RouteLeg, use the LegAnnotation to create the speed and locations. To use this, your Directions request must include DirectionsCriteria.ANNOTATION_SPEED and DirectionsCriteria.ANNOTATION_DISTANCE
Take a single RouteLeg from the DirectionsRoute and map it to a drive using the LegStep.geometry composed together.