ReplayRouteMapper

class ReplayRouteMapper @JvmOverloads() constructor(options: ReplayRouteOptions)

This class converts a DirectionsRoute into events that can be replayed using the MapboxReplayer to navigate a route.

Constructors

ReplayRouteMapper
Link copied to clipboard
fun ReplayRouteMapper(options: ReplayRouteOptions = ReplayRouteOptions.Builder().build(), logger: Logger)
ReplayRouteMapper
Link copied to clipboard
fun ReplayRouteMapper(options: ReplayRouteOptions = ReplayRouteOptions.Builder().build())

Types

Companion
Link copied to clipboard
object Companion

Functions

equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open fun hashCode(): Int
mapDirectionsRouteGeometry
Link copied to clipboard
fun mapDirectionsRouteGeometry(directionsRoute: DirectionsRoute): List<ReplayEventBase>
Take a DirectionsRoute and map it to events that can be replayed by the MapboxReplayer.
mapDirectionsRouteLegAnnotation
Link copied to clipboard
fun mapDirectionsRouteLegAnnotation(directionsRoute: DirectionsRoute): List<ReplayEventBase>
Take a DirectionsRoute and map it to events that can be replayed by the MapboxReplayer.
mapGeometry
Link copied to clipboard
fun mapGeometry(geometry: String): List<ReplayEventBase>
Simulate a driver navigating a polyline string.
mapRouteLegAnnotation
Link copied to clipboard
fun mapRouteLegAnnotation(routeLeg: RouteLeg): List<ReplayEventBase>
Given a RouteLeg, use the LegAnnotation to create the speed and locations.
mapRouteLegGeometry
Link copied to clipboard
fun mapRouteLegGeometry(routeLeg: RouteLeg): List<ReplayEventBase>
Take a single RouteLeg from the DirectionsRoute and map it to a drive using the LegStep.geometry composed together.
toString
Link copied to clipboard
open fun toString(): String

Properties

options
Link copied to clipboard
var options: ReplayRouteOptions
Options that allow you to control the driver and car behavior