Road
public struct Road
extension Road: Equatable
Road information at a given point on a Route
.
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 errorRoadInformationError.missingRoadInfo
thrown.Declaration
Swift
public init( name: TextWithPhonetics?, numbers: [TextWithPhonetics], shields: [RoadShield], types: Set<RoadType> = [] ) throws
Parameters
name
The name of the road.
numbers
The road numbers.
shields
The road shields.
types
Indicates a road types.
-
Text content of the road name.
Declaration
Swift
public let name: TextWithPhonetics?
-
The road numbers.
Declaration
Swift
public let numbers: [TextWithPhonetics]
-
The road shields.
Declaration
Swift
public let shields: [RoadShield]
-
Indicates a road types.
Declaration
Swift
public let types: Set<RoadType>
-
An error that occurs during the creation of the instance.
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public enum InitializationError : Error