-
Creates the instance with the specified properties.
Throws
An error of the typeInitializationError
.Declaration
Swift
public init( name: TextWithPhonetics?, numbers: [TextWithPhonetics], shields: [TomTomSDKCommon.RoadShield], types: Set<RoadType> = [] ) throws
Parameters
name
Name of the road.
numbers
Road numbers.
shields
Road shields.
types
Road types.
-
Name of the road.
Declaration
Swift
public let name: TextWithPhonetics?
-
Road numbers.
Declaration
Swift
public let numbers: [TextWithPhonetics]
-
Represents road shields, a sign used to indicate the route number and the road’s classification.
Declaration
Swift
public let shields: [TomTomSDKCommon.RoadShield]
-
Road types.
Declaration
Swift
public let types: Set<RoadType>
-
An error that occurs during the creation of the instance.
See moreDeclaration
Swift
public enum InitializationError : Error