SpeedInfoState

data class SpeedInfoState(val currentSpeed: Int? = null, val maxSpeedLimit: Int? = null, val isExceedingSpeedLimit: Boolean = false, val cameraProgress: CameraProgressInfo? = null)

State object containing all speed-related information for the navigation UI.

Constructors

Link copied to clipboard
constructor(currentSpeed: Int? = null, maxSpeedLimit: Int? = null, isExceedingSpeedLimit: Boolean = false, cameraProgress: CameraProgressInfo? = null)

Properties

Link copied to clipboard
val cameraProgress: CameraProgressInfo? = null

Information about nearby speed camera and progress towards it, null if no camera nearby

Link copied to clipboard
val currentSpeed: Int? = null

Current in km/h, null if speed data unavailable

Link copied to clipboard

Whether current speed exceeds the maximum speed limit

Link copied to clipboard
val maxSpeedLimit: Int? = null

Maximum allowed speed limit in km/h for current road segment, null if no limit