RoadShield
public struct RoadShield : Equatable
Represents a road shield.
-
Creates an instance with the specified parameters.
Throws
An error of the typeInitializationError.Declaration
Swift
public init( fullRoadNumber: String, shieldContent: String = "", affixes: [String] = [], stateCode: String = "", countryCode: 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.
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 -
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
-
Errors that can be thrown during the creation of
See moreRoadShield.Declaration
Swift
public enum InitializationError : Error
TomTom SDK for iOS (TomTomSDKMapMatchingEngineHybrid 0.38.0-rc01 Docs)
RoadShield