MandatoryTurnGuidanceInstruction

class MandatoryTurnGuidanceInstruction(val turnAngle: Angle, val turnDirection: TurnDirection, val id: UniqueId, val routeOffset: Distance, val maneuverPoint: GeoPoint, val drivingSide: DrivingSide, val combineWithNext: Boolean, val previousSignificantRoad: Road? = null, val nextSignificantRoad: Road? = null, val routePath: List<InstructionPoint> = emptyList(), val intersectionName: String = "", val signpost: Signpost? = null) : GuidanceInstruction

Guidance Instruction indicating a turn which is legally required.

Throws

if turnAngle is not within the range of -180, 180.

Constructors

Link copied to clipboard
constructor(turnAngle: Angle, turnDirection: TurnDirection, id: UniqueId, routeOffset: Distance, maneuverPoint: GeoPoint, drivingSide: DrivingSide, combineWithNext: Boolean, previousSignificantRoad: Road? = null, nextSignificantRoad: Road? = null, routePath: List<InstructionPoint> = emptyList(), intersectionName: String = "", signpost: Signpost? = null)

Properties

Link copied to clipboard
open override val combineWithNext: Boolean

Indicates if the instruction should be combined with the next one.

Link copied to clipboard
open override val drivingSide: DrivingSide

Indicates left-hand vs. right-hand side driving at the point of the maneuver.

Link copied to clipboard
open override val id: UniqueId

The ID of the instruction.

Link copied to clipboard
open override val intersectionName: String

Name of the intersection at the maneuver point, if present for this instruction.

Link copied to clipboard
open override val maneuverPoint: GeoPoint

Location of the maneuver expressed as a GeoPoint.

Link copied to clipboard
open override val nextSignificantRoad: Road? = null

Information about the road the driver will be on immediately after completing the maneuver, if available for this instruction.

Link copied to clipboard
open override val previousSignificantRoad: Road? = null

Information about the road the driver will be on immediately before starting the maneuver, if available for this instruction.

Link copied to clipboard
open override val routeOffset: Distance

Distance from the start of the route to the instruction point.

Link copied to clipboard
open override val routePath: List<InstructionPoint>

A List of RoutePoints that represents a route path.

Link copied to clipboard
open override val signpost: Signpost? = null

Signpost information, if present for this instruction.

Link copied to clipboard

Turn angle relative to the driving direction on the route. Expressed in the range -180...180 degrees.

Link copied to clipboard

Classification of the relative angle of the turn.

Functions

Link copied to clipboard
operator fun component1(): Angle
Link copied to clipboard
Link copied to clipboard
operator fun component11(): String
Link copied to clipboard
operator fun component12(): Signpost?
Link copied to clipboard
operator fun component2(): TurnDirection
Link copied to clipboard
operator fun component3(): UniqueId
Link copied to clipboard
operator fun component4(): Distance
Link copied to clipboard
operator fun component5(): GeoPoint
Link copied to clipboard
operator fun component6(): DrivingSide
Link copied to clipboard
operator fun component7(): Boolean
Link copied to clipboard
operator fun component8(): Road?
Link copied to clipboard
operator fun component9(): Road?
Link copied to clipboard
fun copy(turnAngle: Angle = this.turnAngle, turnDirection: TurnDirection = this.turnDirection, id: UniqueId = this.id, routeOffset: Distance = this.routeOffset, maneuverPoint: GeoPoint = this.maneuverPoint, drivingSide: DrivingSide = this.drivingSide, combineWithNext: Boolean = this.combineWithNext, previousSignificantRoad: Road? = this.previousSignificantRoad, nextSignificantRoad: Road? = this.nextSignificantRoad, routePath: List<InstructionPoint> = this.routePath, intersectionName: String = this.intersectionName, signpost: Signpost? = this.signpost): MandatoryTurnGuidanceInstruction
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