Class LaneDecreaseWarning
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.
-
Field Summary
FieldsModifier and TypeFieldDescriptiondoubleThe distance from the current location to the Lane decrease event.Indicates if the specified event is ahead of the vehicle or has just passed by.intUnique identifier for this lane decrease warning instance.Number of lanes decreased on the left side of the road,nullif the left-side change is unknown or not applicable.Number of lanes decreased on the right side of the road,nullif the right-side change is unknown or not applicable.intNumber of lanes after the lane decrease event.intNumber of lanes before the lane decrease event. -
Constructor Summary
ConstructorsConstructorDescriptionLaneDecreaseWarning(double distanceInMeters, DistanceType distanceType) Creates a new instance. -
Method Summary
-
Field Details
-
id
public int idUnique 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.
-
previousLaneNumber
public int previousLaneNumberNumber of lanes before the lane decrease event.
-
newLaneNumber
public int newLaneNumberNumber of lanes after the lane decrease event.
-
lanesDecreasedFromLeft
Number of lanes decreased on the left side of the road,
nullif the left-side change is unknown or not applicable. -
lanesDecreasedFromRight
Number of lanes decreased on the right side of the road,
nullif the right-side change is unknown or not applicable. -
distanceInMeters
public double distanceInMetersThe distance from the current location to the Lane decrease event.
-
distanceType
Indicates if the specified event is ahead of the vehicle or has just passed by. If it is ahead, then
distanceInMetersis greater than 0.
-
-
Constructor Details
-
Method Details