Lane

class Lane(val directions: List<Direction>, val follow: Direction? = null)

Represents a single lane and the possible driving directions available within it.

Each lane contains a list of directions that a driver can take. One of these directions may optionally be marked as the recommended direction to follow, if the lane is part of the active route.

Note: directions is expected to contain at least one value. If empty, it means no driving direction is associated with the lane.

Constructors

Link copied to clipboard
constructor(directions: List<Direction>, follow: Direction? = null)

Properties

Link copied to clipboard

List of directions reachable from this lane.

Link copied to clipboard
val follow: Direction? = null

the recommended Direction to follow if this lane is part of the active route. - If null, this lane is not recommended. - If non-null, it indicates the direction that should be followed.

Functions

Link copied to clipboard
operator fun component1(): List<Direction>
Link copied to clipboard
operator fun component2(): Direction?
Link copied to clipboard
fun copy(directions: List<Direction> = this.directions, follow: Direction? = this.follow): Lane
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String