LocalizedRoadNumber (API Reference)
Class LocalizedRoadNumber
Used to represent road number localized to specific language with optional direction and route type information.
-
Field Summary
FieldsModifier and TypeFieldDescriptionRoad direction.Road number with locale information.The route type of the LocalizedRoadNumber. -
Constructor Summary
ConstructorsConstructorDescriptionLocalizedRoadNumber(LocalizedText localizedNumber, RouteType routeType) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the whole road number information including its cardinal direction.inthashCode()
-
Field Details
-
localizedNumber
Road number with locale information.
-
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
The route type of the LocalizedRoadNumber.
-
-
Constructor Details
-
LocalizedRoadNumber
Creates a new instance.
- Parameters:
localizedNumber-Road number with locale information.
routeType-The route type of the LocalizedRoadNumber.
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
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.
-