MaxSpeed

@Serializable
data class MaxSpeed(val speed: Int? = null, val unit: SpeedLimit.Unit? = null, val unknown: Boolean? = null, val none: Boolean? = null)

Object representing max speeds along a route.

Since

3.0.0

Constructors

Link copied to clipboard
constructor(speed: Int? = null, unit: SpeedLimit.Unit? = null, unknown: Boolean? = null, none: Boolean? = null)

Types

Link copied to clipboard
class Builder

Builder class for creating MaxSpeed instances.

Properties

Link copied to clipboard
val none: Boolean? = null

Boolean is true if the speed limit is unlimited, otherwise null.

Link copied to clipboard
val speed: Int? = null

Number indicating the posted speed limit.

Link copied to clipboard
val unit: SpeedLimit.Unit? = null

String indicating the unit of speed, either as km/h or mph.

Link copied to clipboard
val unknown: Boolean? = null

Boolean is true if the speed limit is not known, otherwise null.

Functions

Link copied to clipboard

Creates a builder initialized with the current values of the MaxSpeed instance.