Announcement
public struct Announcement
Fine-grained announcement points, each with its own message, location and distance to the instruction point.
Important
This is a Public Preview API. It may be changed or removed at any time.-
Initializes a announcement with all its initial values.
Declaration
Swift
public init( uuid: UUID = UUID(), point: CLLocationCoordinate2D, distanceInMeters: Double, type: String, verbalMessage: String? = nil, verbalMessagePhonetics: Phonetics? = nil, languageCode: String? = nil )Parameters
uuidThe ID of the announcement.
pointLocation of the announcement defined as a latitude longitude pair.
distanceInMetersDistance from
pointto theInstruction.maneuverPoint.typeThe type of the announcement.
verbalMessageThe tagged message to be used for verbal instruction playback.
verbalMessagePhoneticsPhonetic strings of all of the readable
Instructionproperties.languageCodeLanguage code representing the language of the announcement.
-
Unique ID of the announcement.
Declaration
Swift
public let uuid: UUID -
The coordinate where the announcement should be triggered.
Declaration
Swift
public let point: CLLocationCoordinate2D -
The distance before the instruction at which the announcement should be triggered.
Declaration
Swift
public let distanceInMeters: Double -
The type of the announcement.
Declaration
Swift
public let type: String -
The tagged message to be used for verbal instruction playback.
Declaration
Swift
public let verbalMessage: String? -
Phonetic transcription of the verbal message.
Declaration
Swift
public let verbalMessagePhonetics: Phonetics? -
Language code representing the language of the announcement.
Declaration
Swift
public let languageCode: String?
Announcement Structure Reference