Class LocalizedRoadNumber

  • java.lang.Object
    • com.here.sdk.routing.LocalizedRoadNumber

  • public final class LocalizedRoadNumber
    extends java.lang.Object

    Used to represent road number localized to specific language with optional direction and route type information.

    • Field Detail

      • localizedNumber

        @NonNull
        public LocalizedText localizedNumber

        Road number with locale information.

      • direction

        @Nullable
        public CardinalDirection direction

        Road direction. This property indicates the official directional identifier assigned to highways. Can be null when direction is not assigned to highways. The direction indicates the same information as on the signpost shield: For example, if is "101 West", the directions contains WEST. Note that the official direction is not necessarily the travel direction. For example, US-101 through the city of Sunnyvale is physically located East to West. However, the official direction on sign is North/South.

      • routeType

        @NonNull
        public RouteType routeType

        The route type of the LocalizedRoadNumber.

    • Constructor Detail

      • LocalizedRoadNumber

        public LocalizedRoadNumber​(@NonNull
                                   LocalizedText localizedNumber,
                                   @NonNull
                                   RouteType routeType)

        Creates a new instance.

        Parameters:
        localizedNumber -

        Road number with locale information.

        routeType -

        The route type of the LocalizedRoadNumber.

    • 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
      • getTextWithDirection

        @NonNull
        public java.lang.String getTextWithDirection()

        Returns the whole road number information including its cardinal direction. In case direction is empty, the original localized text will be returned.

        Returns:

        The whole road number information including its cardinal direction.