JunctionViewLaneAssistance class
A class that provides lane assistance information for the next complex junction in order to keep following the route.
It is recommended to indicate JunctionViewLaneAssistance and ManeuverViewLaneAssistance separately or to indicate only ManeuverViewLaneAssistance information - JunctionViewLaneAssistance will recommend all lanes that allow to pass the upcoming complex junction, regardless if they will lead to the next maneuver or not. If the location of a maneuver lies on an upcoming complex junction, the recommended lanes will be the same as the ones from ManeuverViewLaneAssistance.
A junction is recognized as complex only if:
- it is at least a bifurcation;
- it has at least two lanes whose directions do not follow the current route. In opposition to ManeuverViewLaneAssistance, notifications are also forwarded when there is no maneuver action occurring at the next complex junction. Therefore, JunctionViewLaneAssistance can be disjointed from maneuvers. If lane assistance should be used to associate it with upcoming maneuvers, consider to use ManeuverViewLaneAssistance instead. Note that ManeuverViewLaneAssistance notifications are synchronized with maneuver events, whereas JunctionViewLaneAssistance events are not strictly synchronized with maneuver events.
Constructors
-
JunctionViewLaneAssistance(List<
Lane> lanesForNextJunction, double distanceToJunctionInMeters) - Creates a new instance.
Properties
- distanceToJunctionInMeters ↔ double
-
Distance to the next complex junction in meters.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setter
-
lanesForNextJunction
↔ List<
Lane> -
A list of lanes on the next complex junction.
The lanes are sorted from left to right: The lane at index 0 represents the leftmost lane and
the last index represents the rightmost lane. This is valid for right-hand and left-hand driving
countries. An empty list means that the complex junction has been passed and that the lane information is not
valid anymore. Exactly one event with a non-empty list is delivered before reaching a complex junction and
one event with an empty list afterwards.
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.