-
The bearing in degrees clockwise at the start of the edge.
Declaration
Swift
public let heading: CLLocationDegrees
-
The edge’s length in meters.
Declaration
Swift
public let length: CLLocationDistance
-
The edge’s mean elevation, measured in meters.
Declaration
Swift
public let altitude: CLLocationDistance?
-
The edge’s curvature.
Declaration
Swift
public let curvature: UInt
-
Is the edge a bridge?
Declaration
Swift
public let isBridge: Bool
-
The edge’s general road classes.
Declaration
Swift
public let roadClasses: RoadClasses
-
The edge’s functional road class, according to the Mapbox Streets source, version 8.
Declaration
Swift
public let mapboxStreetsRoadClass: MapboxStreetsRoadClass
-
The edge’s names
Declaration
Swift
public let names: [RoadName]
-
The ISO 3166-1 alpha-2 code of the country where this edge is located.
Declaration
Swift
public let countryCode: String?
-
The ISO 3166-2 code of the country subdivision where this edge is located.
Declaration
Swift
public let regionCode: String?
-
Indicates how many directions the user may travel along the edge.
Declaration
Swift
public let directionality: Directionality
-
The edge’s maximum speed limit.
Declaration
Swift
public let speedLimit: Measurement<UnitSpeed>?
-
The user’s expected average speed along the edge, measured in meters per second.
Declaration
Swift
public let speed: CLLocationSpeed
-
Indicates which side of a bidirectional road on which the driver must be driving. Also referred to as the rule of the road.
Declaration
Swift
public let drivingSide: DrivingSide
-
The number of parallel traffic lanes along the edge.
Declaration
Swift
public let laneCount: UInt?
-
True
if edge is considered to be in an urban area,false
otherwise.Declaration
Swift
public let isUrban: Bool
-
init(heading:length:roadClasses:mapboxStreetsRoadClass:speedLimit:speed:isBridge:names:laneCount:altitude:curvature:countryCode:regionCode:drivingSide:directionality:isUrban:)
Initializes a new edge
Metadata
object.Declaration
Swift
public init(heading: CLLocationDegrees, length: CLLocationDistance, roadClasses: RoadClasses, mapboxStreetsRoadClass: MapboxStreetsRoadClass, speedLimit: Measurement<UnitSpeed>?, speed: CLLocationSpeed, isBridge: Bool, names: [RoadName], laneCount: UInt?, altitude: CLLocationDistance?, curvature: UInt, countryCode: String?, regionCode: String?, drivingSide: DrivingSide, directionality: Directionality, isUrban: Bool)