GuidanceOptions
public struct GuidanceOptions
                Specifies options related to generated instructions. It is used by RoutePlanningOptions when planning a route.
- 
                  
init(guidanceVersion:instructionType: language: roadShieldReferences: announcementPoints: phoneticsType: extendedSections: progressPoints: ) Creates a new
GuidanceOptionsinstance with provided parameters.Note
Parameter announcementPoints is not supported with the Orbis map.Throws
An error of the typeGuidanceOptionError.unsupportedCombinationOfOptionsDeclaration
Swift
@available(*, deprecated, message: "This API is deprecated and will be removed with the next major release. Please use the new initializer instead.") 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. By default it is equal to the
OnlineAPIVersion.v1value.instructionTypeThe format in which instructions are reported. By default it is equal to the
InstructionType.textvalue.languageThe language of the guidance messages. By default it is equal to “en-US”.
roadShieldReferencesWhether to include references to road shields in instructions. By default it is equal to the
RoadShieldReferences.nonevalue.announcementPointsWhether to include announcement points in instructions. By default it is equal to the
AnnouncementPoints.nonevalue.phoneticsTypeThe format of phonetic instruction transcriptions. By default it is equal to the
InstructionPhoneticsType.IPAvalue.extendedSectionsWhether to include road shield and lane sections in the response. By default it is equal to the
ExtendedSections.nonevalue.progressPointsWhether to include distance and travel time points in the response. By default it is equal to the
ProgressPoints.allvalue. - 
                  
                  
Creates a new
GuidanceOptionsinstance with provided parameters.Throws
An error of the typeGuidanceOptionError.unsupportedCombinationOfOptionsImportant
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public init ( language: Locale = Locale(identifier: "en-US"), roadShieldReferences: RoadShieldReferences = .none, phoneticsType: InstructionPhoneticsType = .IPA, extendedSections: ExtendedSections = .none ) throwsParameters
languageThe language of the guidance messages. By default it is equal to “en-US”.
roadShieldReferencesWhether to include references to road shields in instructions. By default it is equal to the
RoadShieldReferences.nonevalue.phoneticsTypeThe format of phonetic instruction transcriptions. By default it is equal to the
InstructionPhoneticsType.IPAvalue.extendedSectionsWhether to include road shield and lane limit sections in the response. By default it is equal to the
ExtendedSections.nonevalue. 
- 
                  
                  
The version of the guidance API to be used. By default it is equal to the
OnlineAPIVersion.v2value.Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public var guidanceVersion: OnlineAPIVersion - 
                  
                  
The format in which instructions are reported. By default it is equal to the
InstructionType.textvalue.Declaration
Swift
@available(*, deprecated, message: "This API is deprecated and will be removed with the next major release.") public var instructionType: InstructionType - 
                  
                  
The locale that defines the language of instructions. e.g. “en-GB”. By default it is equal to “en-US”.
Declaration
Swift
public var language: Locale - 
                  
                  
Whether to include references to road shields in instructions. By default it is equal to the
RoadShieldReferences.nonevalue.Declaration
Swift
public var roadShieldReferences: RoadShieldReferences - 
                  
                  
Whether to include announcement points in instructions. By default it is equal to the
AnnouncementPoints.nonevalue.Note
This option is not supported with the Orbis map.Declaration
Swift
@available(*, deprecated, message: "This API is deprecated and will be removed with the next major release.") public var announcementPoints: AnnouncementPoints - 
                  
                  
The format of phonetic instruction transcriptions. By default it is equal to the
InstructionPhoneticsType.nonevalue.Declaration
Swift
public var phoneticsType: InstructionPhoneticsType - 
                  
                  
Whether to include road shield, lane, and speed limit sections in the response. By default it is equal to the
ExtendedSections.nonevalue.Declaration
Swift
public var extendedSections: ExtendedSections - 
                  
                  
Whether to include distance and travel time points in the response. By default it is equal to the
ProgressPoints.nonevalue.Declaration
Swift
@available(*, deprecated, message: "This API is deprecated and will be removed with the next major release.") public var progressPoints: ProgressPoints 
        
 
          TomTom SDK for iOS (0.40.0)
        
          GuidanceOptions