RoadInformation
public struct RoadInformation
extension RoadInformation: Equatable
Road information relating to a GuidanceInstruction.
Important
This is a Public Preview API. It may be changed or removed at any time.-
Creates the instance with the specified properties.
Throws
If all properties are empty, the error
InitializationError.incorrectInputsthrown.Declaration
Swift
public init( roadName: String, roadNumbers: [String], roadNumberShields: [RoadShield], roadTypes: Set<TomTomSDKRoute.RoadType> = [] ) throwsParameters
roadNameThe name of the road.
roadNumbersThe road numbers.
roadShieldsThe road numbers, contain detailed information about road shields.
roadTypesIndicates a road types.
-
Text content of the road name.
Declaration
Swift
public let roadName: String -
The road numbers.
Declaration
Swift
public let roadNumbers: [String] -
The road numbers, contain detailed information about road shields.
Declaration
Swift
public let roadNumberShields: [RoadShield] -
Indicates a road types.
Declaration
Swift
public let roadTypes: Set<TomTomSDKRoute.RoadType>
-
An error that occurs during the creation of the instance.
See moreImportant
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public enum InitializationError : Error
RoadInformation Structure Reference