Class TrafficMergeWarning
A class that provides warning for merging traffic. The main field describing the merging traffic is TrafficMergeWarning.road_type
specifying the type of road containing traffic which is merging with the current road.
Use TrafficMergeWarningListener to get notifications about upcoming merging traffic.
-
Field Summary
FieldsModifier and TypeFieldDescriptiondoubleDeprecated.Will be removed in v4.29.0.Deprecated.Will be removed in v4.29.0.intUnique identifier for this specific traffic merge warning instance.intNumber of lanes of the merging road containing the traffic.Type of road which contains the merging traffic.The side from which the traffic is merging. -
Constructor Summary
ConstructorsConstructorDescriptionTrafficMergeWarning(int id, double distanceToTrafficMergeInMeters, TrafficMergeRoadType roadType, TrafficMergeSide side, int laneCount, DistanceType distanceType) Deprecated.Will be removed in v4.29.0. -
Method Summary
-
Field Details
-
id
public int idUnique identifier for this specific traffic merge 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.
-
distanceToTrafficMergeInMeters
Deprecated.Will be removed in v4.29.0. Use the
WarningUpdateimplementation instead.Distance to merging traffic in meters.
-
roadType
Type of road which contains the merging traffic.
-
side
The side from which the traffic is merging.
-
laneCount
public int laneCountNumber of lanes of the merging road containing the traffic. If the road has no lanes defined, than the number of lanes returned will be 1.
-
distanceType
Deprecated.Will be removed in v4.29.0. Use the
WarningStatusimplementation instead.The distance type for the warning, e.g. a warning for a new traffic merge location ahead or a warning for passing a traffic merge location. Since the traffic merge warning is given relative to a single position on the route,
DistanceType.REACHEDwill never be given for this warning.
-
-
Constructor Details
-
Method Details