SpeedLimits

data class SpeedLimits(    val id: Int,     val pathId: Int,     val startOffset: Distance,     val endOffset: Distance,     val speed: Speed,     val speedFog: Speed?,     val speedSnow: Speed?,     val speedRain: Speed?,     val type: SpeedLimits.Type) : HorizonElement

Describes speed limits.

Constructors

Link copied to clipboard
fun SpeedLimits(    id: Int,     pathId: Int,     startOffset: Distance,     endOffset: Distance,     speed: Speed,     speedFog: Speed?,     speedSnow: Speed?,     speedRain: Speed?,     type: SpeedLimits.Type)

Creates a SpeedLimits horizon element.

Types

Link copied to clipboard
value class Type

Speed limit types.

Properties

Link copied to clipboard
open override val endOffset: Distance
Link copied to clipboard
open override val id: Int

Identifier of this element.

Link copied to clipboard
open override val pathId: Int

Identifier of the path this element belongs to.

Link copied to clipboard
val speed: Speed

Value of speed limit.

Link copied to clipboard
val speedFog: Speed?

Value of speed limit valid during fog. Null if unknown.

Link copied to clipboard
val speedRain: Speed?

Value of speed limit valid during rain. Null if unknown.

Link copied to clipboard
val speedSnow: Speed?

Value of speed limit valid during snow. Null if unknown.

Link copied to clipboard
open override val startOffset: Distance

Start offset on the path.

Link copied to clipboard
val type: SpeedLimits.Type

Type of speed limit.