• java.lang.Object
    • com.here.sdk.navigation.JunctionViewLaneAssistance

  • public final class JunctionViewLaneAssistance
    extends java.lang.Object

    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:

    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.util.List<Lane> lanesForNextJunction
      A list of lanes on the next complex junction.
    • Constructor Summary

      Constructors 
      Constructor Description
      JunctionViewLaneAssistance​(java.util.List<Lane> lanesForNextJunction)
      Creates a new instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      int hashCode()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • lanesForNextJunction

        @NonNull
        public java.util.List<Lane> lanesForNextJunction

        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.

        Note: Lanes going in opposite direction are not included in the list.

    • Constructor Detail

      • JunctionViewLaneAssistance

        public JunctionViewLaneAssistance​(@NonNull
                                          java.util.List<Lane> lanesForNextJunction)

        Creates a new instance.

        Parameters:
        lanesForNextJunction -

        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.

        Note: Lanes going in opposite direction are not included in the list.

    • Method Detail

      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object