Road
public struct Road : Equatable
Road information at a given point on a Route.
-
Creates the instance with the specified properties.
Throws
An error of the typeInitializationError.Declaration
Swift
public init( name: TextWithPhonetics?, numbers: [TextWithPhonetics], shields: [RoadShield], types: Set<RoadType> = [] ) throwsParameters
nameName of the road.
numbersRoad numbers.
shieldsRoad shields.
typesRoad types.
-
Name of the road.
Declaration
Swift
public let name: TextWithPhonetics? -
Road numbers.
Declaration
Swift
public let numbers: [TextWithPhonetics] -
Road shields.
Declaration
Swift
public let shields: [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
Road Structure Reference