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.
Note: This is a beta release of this feature, so there could be a few bugs and unexpected behaviors. Related APIs may change for new releases without a deprecation process.
Constructors
- LaneDecreaseWarning(double distanceInMeters, DistanceType distanceType)
Properties
- distanceInMeters ↔ double
-
The distance from the current location to the Lane decrease event.
getter/setter pair
- distanceType ↔ DistanceType
-
Indicates if the specified event is ahead of the vehicle or has just passed by. If it is
ahead, then LaneDecreaseWarning.distanceInMeters is greater than 0.
getter/setter pair
- 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,
nullif 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,
nullif 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.