TrafficMergeWarning class

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.

Constructors

TrafficMergeWarning(double distanceToTrafficMergeInMeters, DistanceType distanceType)

Properties

distanceToTrafficMergeInMeters ↔ double
Distance to merging traffic in meters.
getter/setter pair
distanceType 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.REACHED will never be given for this warning.
getter/setter pair
hashCode → int
The hash code for this object.
no setter
laneCount ↔ int
Number 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.
getter/setter pair
roadType TrafficMergeRoadType
Type of road which contains the merging traffic.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
side TrafficMergeSide
The side from which the traffic is merging.
getter/setter pair

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.