Class LocalizedRoadNumber
Class LocalizedRoadNumber
- java.lang.Object
-
- com.here.sdk.routing.LocalizedRoadNumber
-
public final class LocalizedRoadNumber extends java.lang.ObjectUsed to represent road number localized to specific language with optional direction and route type information.
-
-
Field Summary
Fields Modifier and Type Field Description CardinalDirectiondirectionRoad direction.LocalizedTextlocalizedNumberRoad number with locale information.RouteTyperouteTypeThe route type of the LocalizedRoadNumber.
-
Constructor Summary
Constructors Constructor Description LocalizedRoadNumber(LocalizedText localizedNumber, RouteType routeType)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.StringgetTextWithDirection()Returns the whole road number information including its cardinal direction.inthashCode()
-
-
-
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
nullwhen 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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.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.
-
-