RouteTextOptions Structure Reference
- Last UpdatedJul 8, 2025
- 1 minute read
public struct RouteTextOptions : Hashable
Specify how textual output should be provided.
-
The language for all textual information. When the specified language is not supported, the default language is used, which is English (United States).
Declaration
Swift
public var language: LanguageCode
-
Defines the measurement system used in instruction text. When imperial is selected, units used are based on the language specified in the request. Defaults to metric.
Declaration
Swift
public var unitSystem: UnitSystem
-
An option whether street name, road number and sign post direction should be used when generating notification. Defaults to each attribute as
LocalizedTextPreference.useAlways
.Declaration
Swift
public var textUsageOptions: TextUsageOptions
-
Creates a new instance.
Declaration
Swift
public init(language: LanguageCode = LanguageCode.enUs, unitSystem: UnitSystem = UnitSystem.metric, textUsageOptions: TextUsageOptions = TextUsageOptions())