LaneGuidance

class LaneGuidance(val lanes: List<Lane>, val laneSeparators: List<LaneSeparator>, val routeOffset: Distance, val length: Distance)

Contains information about lane guidance.

Constructors

Link copied to clipboard
constructor(lanes: List<Lane>, laneSeparators: List<LaneSeparator>, routeOffset: Distance, length: Distance)

Properties

Link copied to clipboard

List of lanes in the lane guidance, ordered from left to right. Each lane contains a list of directions that are reachable from that lane. One of these directions may optionally be marked as the recommended one to follow (see Lane.follow).

Link copied to clipboard

List of LaneSeparator objects, ordered from left to right. Lane separators represent the dividers between and around lanes. Since each divider is shared by two lanes, separators are not defined per lane. Instead, they are listed in a single array, ordered from left to right. For example, if there are 3 lanes, there will be 4 separators:

Link copied to clipboard

Distance from the start point to the end point of this LaneGuidance.

Link copied to clipboard

Distance from the start of the route to the start point of this LaneGuidance.

Functions

Link copied to clipboard
operator fun component1(): List<Lane>
Link copied to clipboard
operator fun component2(): List<LaneSeparator>
Link copied to clipboard
operator fun component3(): Distance
Link copied to clipboard
operator fun component4(): Distance
Link copied to clipboard
fun copy(lanes: List<Lane> = this.lanes, laneSeparators: List<LaneSeparator> = this.laneSeparators, routeOffset: Distance = this.routeOffset, length: Distance = this.length): LaneGuidance
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