RoadInformation
public struct RoadInformation
extension RoadInformation: 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.-
Declaration
Swift
public init( roadName: TextWithPhonetics, roadNumbers: [TextWithPhonetics], roadNumberShields: [RoadShield], roadTypes: Set<RoadType> = Set<RoadType>() )
Parameters
roadName
Name of the road.
roadNumbers
Road numbers.
roadShields
Road shields.
isUrbanArea
indicates if the road is in urban area.
isControlledAccess
indicates if the road is controlled access road.
isMotorway
indicates if the road is a motorway.
-
Text content of the road name.
Declaration
Swift
public let roadName: TextWithPhonetics
-
The road numbers.
Declaration
Swift
public let roadNumbers: [TextWithPhonetics]
-
The road numbers, contain detailed information about road shields.
Declaration
Swift
public let roadNumberShields: [RoadShield]
-
Indicates a road types.
Declaration
Swift
public let roadTypes: Set<RoadType>