LaneDecreaseWarning class

Represents a lane decrease warning that notifies about upcoming reductions in the number of available lanes.

Lane decrease warnings are generated when the road ahead has fewer lanes than the previous road segment provided by sdk.electronic_horizon.ElectronicHorizonEngine, requiring drivers to merge or change lanes. Lane decrease is provided only on highways and motorways. It will not be provided for junctions, when maneuver is given for the lane decrease situation or when the TrafficMergeWarning is provided. Special lanes (e.g. Bus lane, HOV) will only be included to the lane decrease warning generation if the according options are set in TransportSpecification.

Constructors

LaneDecreaseWarning()

Properties

hashCode → int
The hash code for this object.
no setter
id ↔ int
Unique identifier for this lane decrease warning instance. Each warning type (truck restrictions, speed warnings, etc.) maintains its own independent ID namespace. Use this ID to track, update, or dismiss individual warning instances of this type.
getter/setter pair
lanesDecreasedFromLeft ↔ int?
Number of lanes decreased on the left side of the road, null if the left-side change is unknown or not applicable.
getter/setter pair
lanesDecreasedFromRight ↔ int?
Number of lanes decreased on the right side of the road, null if the right-side change is unknown or not applicable.
getter/setter pair
newLaneNumber ↔ int
Number of lanes after the lane decrease event.
getter/setter pair
previousLaneNumber ↔ int
Number of lanes before the lane decrease event.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.