GuidanceOptions
public struct GuidanceOptions
Specifies options related to instructions.
Important
This is a Public Preview API. It may be changed or removed at any time.-
init(guidanceVersion:
instructionType: language: roadShieldReferences: announcementPoints: phoneticsType: extendedSections: progressPoints: ) Throws
An exception of the typeGuidanceOptionError.unsupportedCombinationOfOptions
Declaration
Swift
public init ( guidanceVersion: OnlineApiVersion = .v1, instructionType: InstructionType = .text, language: Locale = Locale(identifier: "en-US"), roadShieldReferences: RoadShieldReferences = .none, announcementPoints: AnnouncementPoints = .none, phoneticsType: InstructionPhoneticsType = .none, extendedSections: ExtendedSections = .none, progressPoints: ProgressPoints = .none ) throws
Parameters
guidanceVersion
The version of the guidance API to be used.
instructionType
The format in which instructions are reported.
language
The language of the guidance messages.
roadShieldReferences
Whether to include references to road shields in instructions.
announcementPoints
Whether to include announcement points in instructions.
phoneticsType
The format of phonetic instruction transcriptions.
extendedSections
Whether to include road shield, lane, and speed limit sections in the response.
progressPoints
Whether to include distance and travel time points in the response.
-
The version of the guidance API to be used.
Declaration
Swift
public var guidanceVersion: OnlineApiVersion
-
The format in which instructions are reported.
Declaration
Swift
public var instructionType: InstructionType
-
The locale that defines the language of instructions. e.g. “en-GB”.
Declaration
Swift
public var language: Locale
-
Whether to include references to road shields in instructions.
Declaration
Swift
public var roadShieldReferences: RoadShieldReferences
-
Whether to include announcement points in instructions.
Declaration
Swift
public var announcementPoints: AnnouncementPoints
-
The format of phonetic instruction transcriptions.
Declaration
Swift
public var phoneticsType: InstructionPhoneticsType
-
Whether to include road shield, lane, and speed limit sections in the response.
Declaration
Swift
public var extendedSections: ExtendedSections
-
Whether to include distance and travel time points in the response.
Declaration
Swift
public var progressPoints: ProgressPoints