-
Creates the instance with the specified properties.
Throws
If all properties are empty, the error InitializationError.incorrectInputs is thrown.
Declaration
Swift
public init( name: String, numbers: [String], shields: [RoadShield], types: Set<TomTomSDKRoute.RoadType> = [] ) throwsParameters
nameName of the road.
numbersRoad numbers.
shieldsRoad shields.
typesRoad types.
-
Name of the road.
Declaration
Swift
public let name: String -
Road numbers.
Declaration
Swift
public let numbers: [String] -
Road shields.
Declaration
Swift
public let shields: [RoadShield] -
Road types.
Declaration
Swift
public let types: Set<TomTomSDKRoute.RoadType>
-
An error that occurs during the creation of the instance.
See moreDeclaration
Swift
public enum InitializationError : Error
TomTom SDK for iOS (TomTomSDKMapMatchingEngineHybrid 0.38.0-rc01 Docs)
Road