ReplayRouteOptions

class ReplayRouteOptions

Replay route simulates a driver on a direction route. These options allow you to control the behavior of that driver.

Note that the default values are recommended because they have been tested.

Parameters

frequency

The number of signals per second

maxSpeedMps

Max speed the driver will drive on straight-aways

turnSpeedMps

Speed the driver will slow down for turns approaching 90 degrees

uTurnSpeedMps

Speed the driver will go when facing a u-turn

maxAcceleration

How fast the driver will accelerate to maxSpeedMps in mps^2

minAcceleration

How fast the driver will decelerate in mps^2

Types

Builder
Link copied to clipboard
class Builder
Used to build ReplayRouteOptions.

Functions

equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Regenerate whenever a change is made
hashCode
Link copied to clipboard
open override fun hashCode(): Int
Regenerate whenever a change is made
toBuilder
Link copied to clipboard
fun toBuilder(): ReplayRouteOptions.Builder
toString
Link copied to clipboard
open override fun toString(): String
Returns a string representation of the object.

Properties

frequency
Link copied to clipboard
val frequency: Double
The number of signals per second
maxAcceleration
Link copied to clipboard
val maxAcceleration: Double
How fast the driver will accelerate to maxSpeedMps in mps^2
maxSpeedMps
Link copied to clipboard
val maxSpeedMps: Double
Max speed the driver will drive on straight-aways
minAcceleration
Link copied to clipboard
val minAcceleration: Double
How fast the driver will decelerate in mps^2
turnSpeedMps
Link copied to clipboard
val turnSpeedMps: Double
Speed the driver will slow down for turns approaching 90 degrees
uTurnSpeedMps
Link copied to clipboard
val uTurnSpeedMps: Double
Speed the driver will go when facing a u-turn