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> = [] ) 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]
-
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