Road
public struct Road
extension Road: 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( name: String, numbers: [String], shields: [RoadShield], types: Set<TomTomSDKRoute.RoadType> = [] ) throwsParameters
nameThe name of the road.
numbersThe road numbers.
shieldsThe road shields.
typesIndicates a road types.
-
Text content of the road name.
Declaration
Swift
public let name: String -
The road numbers.
Declaration
Swift
public let numbers: [String] -
The road shields.
Declaration
Swift
public let shields: [RoadShield] -
Indicates a road types.
Declaration
Swift
public let types: 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
Road Structure Reference