Class ManeuverViewLaneAssistance

java.lang.Object
com.here.sdk.navigation.ManeuverViewLaneAssistance

public final class ManeuverViewLaneAssistance extends Object

A class that provides lane assistance information for the next maneuver(s). During turn-by-turn navigation lane assistance can help a driver to choose the recommended lanes in order to complete the upcoming maneuvers. The notifications are synchronized with the EventTextListener. EventTextListener has 4 notification types for each maneuver: Range, Reminder, Distance and Action. Only the maneuver notification of type Distance will also notify a ManeuverViewLaneAssistance object (e.g. "After 400 meters, turn right onto Invalidenstraße"). The notification will not be sent when other types of maneuver notification are given. The notification will not be sent when no lane data is available. During tracking mode, no notifications are delivered. This ManeuverViewLaneAssistance information is valid until the next maneuver is reached.

  • Field Details

    • lanesForNextManeuver

      @NonNull public List<Lane> 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

      @NonNull public List<Lane> 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 lanesForNextManeuver. There is no separate maneuver notification on the second maneuver when two maneuvers are are too close to each other.

  • Constructor Details

    • ManeuverViewLaneAssistance

      public ManeuverViewLaneAssistance(@NonNull List<Lane> lanesForNextManeuver, @NonNull List<Lane> lanesForNextNextManeuver)

      Creates a new instance.

      Parameters:
      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 lanesForNextManeuver. There is no separate maneuver notification on the second maneuver when two maneuvers are are too close to each other.

  • Method Details