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.unsupportedCombinationOfOptionsDeclaration
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 ) throwsParameters
guidanceVersionThe version of the guidance API to be used.
instructionTypeThe format in which instructions are reported.
languageThe language of the guidance messages.
roadShieldReferencesWhether to include references to road shields in instructions.
announcementPointsWhether to include announcement points in instructions.
phoneticsTypeThe format of phonetic instruction transcriptions.
extendedSectionsWhether to include road shield, lane, and speed limit sections in the response.
progressPointsWhether 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
GuidanceOptions Structure Reference