LocalizedRoadNumber
public struct LocalizedRoadNumber : Hashable
Used to represent road number localized to specific language with optional direction and route type information.
-
Road number with locale information.
Declaration
Swift
public var localizedNumber: LocalizedText -
Road direction. This property indicates the official directional identifier assigned to highways. Can be
nilwhen 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.Declaration
Swift
public var direction: CardinalDirection? -
The route type of the LocalizedRoadNumber.
Declaration
Swift
public var routeType: RouteType -
Creates a new instance.
Declaration
Swift
public init(localizedNumber: LocalizedText, direction: CardinalDirection? = nil, routeType: RouteType) -
Returns the whole road number information including its cardinal direction. In case direction is empty, the original localized text will be returned.
Declaration
Swift
public func completeRoadNumber() -> StringReturn Value
The whole road number information including its cardinal direction.