ManeuverViewLaneAssistance constructor

ManeuverViewLaneAssistance(
  1. List<Lane> lanesForNextManeuver,
  2. List<Lane> lanesForNextNextManeuver
)

Creates a new instance.

  • lanesForNextManeuver A list of lanes on the current road that leads to the upcoming maneuver. 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 both right-hand and left-hand driving countries. Contraflow lanes are not included in the list. The list is guaranteed to be non-empty. RoadAttributes.isRightDrivingSide indicates if this is a left-hand driving country or not.
  • lanesForNextNextManeuver A list of lanes on the road that leads to the maneuver after the upcoming maneuver. 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 both right-hand and left-hand driving countries. Contraflow lanes are not included in the list. RoadAttributes.isRightDrivingSide indicates if this is a left-hand driving country or not. By default, this list is empty. It will be filled when the next two maneuvers are too close to each other, or when the next two maneuvers are roundabout maneuvers. Note: This notification is delivered at the same time as the ManeuverViewLaneAssistance.lanesForNextManeuver. There is no separate maneuver notification on the second maneuver when two maneuvers are are too close to each other.

Implementation

ManeuverViewLaneAssistance(this.lanesForNextManeuver, this.lanesForNextNextManeuver);