Builder

class Builder

Used to build ReplayRouteOptions.

Constructors

Link copied to clipboard
fun Builder()

Functions

Link copied to clipboard
fun build(): ReplayRouteOptions

Build your ReplayRouteOptions.

Link copied to clipboard
fun frequency(frequency: Double): ReplayRouteOptions.Builder

Number of signals per second. 1 will produce 1 location per second (default) 10 will produce 10 locations per second 0.5 will produce 1 location every 2 seconds

Link copied to clipboard
fun maxAcceleration(maxAcceleration: Double): ReplayRouteOptions.Builder

How fast the driver will accelerate to maxSpeedMps

Link copied to clipboard
fun maxSpeedMps(maxSpeedMps: Double): ReplayRouteOptions.Builder

Max speed the driver will drive on straight-aways

Link copied to clipboard
fun minAcceleration(minAcceleration: Double): ReplayRouteOptions.Builder

How fast the driver will decelerate

Link copied to clipboard
fun turnSpeedMps(minSpeedMps: Double): ReplayRouteOptions.Builder

Speed the driver will slow down for turns approaching 90 degrees

Link copied to clipboard
fun uTurnSpeedMps(uTurnSpeedMps: Double): ReplayRouteOptions.Builder

Speed the driver will go when facing a u-turn