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.missingRoadInfothrown.Declaration
Swift
public init( name: TextWithPhonetics?, numbers: [TextWithPhonetics], shields: [RoadShield], types: Set<RoadType> = [] ) throwsParameters
nameThe name of the road.
numbersThe road numbers.
shieldsThe road shields.
typesIndicates 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.
See moreImportant
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public enum InitializationError : Error
Road Structure Reference