Class LocalizedRoadNumber

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

public final class LocalizedRoadNumber extends Object

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

  • Field Details

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

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

    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getTextWithDirection

      @NonNull public 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.