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
uuid
The ID of the announcement.
point
Location of the announcement defined as a latitude longitude pair.
distanceInMeters
Distance from
point
to theInstruction.maneuverPoint
.type
The type of the announcement.
verbalMessage
The tagged message to be used for verbal instruction playback.
verbalMessagePhonetics
Phonetic strings of all of the readable
Instruction
properties.languageCode
Language 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?