RoadClasses
public struct RoadClasses : OptionSet, CustomStringConvertible
extension RoadClasses: Codable
Option set that contains attributes of a road segment.
-
Declaration
Swift
public var rawValue: Int
-
Declaration
Swift
public init(rawValue: Int)
-
The road segment is tolled.
Declaration
Swift
public static let toll: RoadClasses
-
The road segment has access restrictions.
A road segment may have this class if there are general access restrictions or a high-occupancy vehicle restriction.
Declaration
Swift
public static let restricted: RoadClasses
-
The road segment is a freeway or freeway ramp.
It may be desirable to suppress the name of the freeway when giving instructions and give instructions at fixed distances before an exit (such as 1 mile or 1 kilometer ahead).
Declaration
Swift
public static let motorway: RoadClasses
-
The user must travel this segment of the route by ferry.
The user should verify that the ferry is in operation. For driving and cycling directions, the user should also verify that his or her vehicle is permitted onboard the ferry.
In general, the transport type of the step containing the road segment is also
TransportType.ferry
.Declaration
Swift
public static let ferry: RoadClasses
-
The user must travel this segment of the route through a tunnel.
Declaration
Swift
public static let tunnel: RoadClasses
-
Creates a
RoadClasses
given an array of strings.Declaration
Swift
public init?(descriptions: [String])
-
Declaration
Swift
public var description: String { get }
-
Declaration
Swift
public func encode(to encoder: Encoder) throws
-
Declaration
Swift
public init(from decoder: Decoder) throws