TrafficMergeWarning (API Reference)
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 TypeFieldDescriptiondoubleDistance to merging traffic in meters.The distance type for the warning, e.g.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(double distanceToTrafficMergeInMeters, DistanceType distanceType) Creates a new instance. -
Method Summary
-
Field Details
-
distanceToTrafficMergeInMeters
public double distanceToTrafficMergeInMetersDistance 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
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