RoadShield
public struct RoadShield
extension RoadShield: Equatable
Represents a road shield.
Important
This is a Public Preview API. It may be changed or removed at any time.-
Declaration
Swift
public init( fullRoadNumber: String, shieldContent: String = "", affixes: [String] = [], stateCode: String = "", countryCode: String = "", languageCode: String = "", reference: String = "" ) throwsParameters
fullRoadNumberFull road number. Most road numbers have a ‘letter’ prefix, which is also included.
shieldContentThe road number as shown on the shield.
affixesList of possible affixes that can be shown in addition to the
shieldContent.stateCodeThe state code of the state the shield is in (second part of an ISO 3166-2 identifier).
countryCodeThe country code (ISO 3166-1 alpha-3) of the country the shield is in.
languageCodeThe language code of the road number as an IETF language tag, i.e., a dash-separated two-letter ISO-639 language code, and a two-letter ISO 3166 country code. Example: “en-US”
referenceTransparent identifier of the shield for use with TomTom’s RoadShield API (see “Routing with Extended Guidance”). May be empty if the underlying data source does not support the mapping.
-
The full road number. Most road numbers have a ‘letter’ prefix, which is also returned. For example, a call for the German motorway returns “A40” rather than “40”.
Declaration
Swift
public let fullRoadNumber: String -
The road number as shown on the shield. For example, a call for the German motorway returns “40” rather than “A40”.
Declaration
Swift
public let shieldContent: String -
Additional shield text, such as “N”, “Bus” (for “Business”), “Bus Loop” (for “Business Loop”).
Declaration
Swift
public let affixes: [String] -
The state code of the state the shield is in (second part of an ISO 3166-2 identifier).
Declaration
Swift
public let stateCode: String -
The country code (ISO 3166-1 alpha-3) of the country the shield is in.
Declaration
Swift
public let countryCode: String -
The language code of the road number as an IETF language tag, i.e., a dash-separated two-letter ISO-639 language code, and a two-letter ISO 3166 country code. Example: “en-US”
Declaration
Swift
public let languageCode: String -
Transparent identifier of the shield for use with TomTom’s RoadShield API (see “Routing with Extended Guidance”). May be empty if the underlying data source does not support the mapping.
Declaration
Swift
public let reference: String
RoadShield Structure Reference