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 on the horizon element.

Parameters

id

Identifier of this element.

pathId

Identifier of the path this element belongs to.

startOffset

Start offset on the path.

endOffset

End offset on the path.

speed

Value of speed limit.

speedFog

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

speedSnow

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

speedRain

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

type

Type of speed limit.

Important: This is a Public Preview API. It may be changed or removed at any time.

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)

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
Link copied to clipboard
open override val pathId: Int
Link copied to clipboard
val speed: Speed
Link copied to clipboard
val speedFog: Speed?
Link copied to clipboard
val speedRain: Speed?
Link copied to clipboard
val speedSnow: Speed?
Link copied to clipboard
open override val startOffset: Distance
Link copied to clipboard
val type: SpeedLimits.Type