Phonetics
public struct Phonetics : Equatable
Phonetic strings of all of the readable Instruction properties.
-
init(street:streetLanguage: roadNumbers: roadNumbersLanguages: signpostText: signpostTextLanguage: phoneticAlphabet: ) Creates an instance with the specified parameters.
Throws
An error of the typeInitializationError.Declaration
Swift
public init( street: String = "", streetLanguage: Locale, roadNumbers: [String] = [], roadNumbersLanguages: [Locale] = [], signpostText: String = "", signpostTextLanguage: Locale, phoneticAlphabet: String = "" ) throwsParameters
streetPhonetic string for the street.
streetLanguageThe language in which
streetis encoded asLocale.roadNumbersPhonetic strings for road numbers.
roadNumbersLanguagesThe languages in which the
roadNumbersare encoded asLocales.signpostTextPhonetic string for signpost text.
signpostTextLanguageThe language of the signpost text as an IETF language tag, i.e., a dash-separated two-letter ISO-639 language code, and a two-letter ISO 3166 country code as
Locale. Example: “en-US”.phoneticAlphabetPhonetic alphabet indicating the type of phonetics stored.
-
Phonetic string for the street.
Declaration
Swift
public let street: String -
The
Localeof the street name with language in whichstreetis encoded.Declaration
Swift
public let streetLanguage: Locale -
Phonetic strings for road numbers.
Declaration
Swift
public let roadNumbers: [String] -
The languages in which the
roadNumbersare encoded.Declaration
Swift
public let roadNumbersLanguages: [Locale] -
Phonetic string for signpost text.
Declaration
Swift
public let signpostText: String -
The
Localeof the signpost with language in whichsignpostTextis encoded.Declaration
Swift
public let signpostTextLanguage: Locale -
Phonetic alphabet indicating the type of phonetics stored.
Declaration
Swift
public let phoneticAlphabet: String
-
Represents the error that appears during initialization of the object.
See moreDeclaration
Swift
public enum InitializationError : Error
TomTom SDK for iOS (0.53.1)
Phonetics