AllowedTransportModes
public struct AllowedTransportModes : Hashable
Specifies which transport modes are allowed in a particular direction.
Note: This struct specifies a general restriction to that transport mode, but additional restriction are possible.
Note: This is a beta release of this feature and may contain bugs or exhibit unexpected behaviour. Related APIs are subject to change without a deprecation process.
-
Trueif bicycles can access the segment in the given directionDeclaration
Swift
public var bicycleAllowed: Bool -
Trueif buses can access the segment in the given directionDeclaration
Swift
public var busAllowed: Bool -
Trueif cars can access the segment in the given directionDeclaration
Swift
public var carAllowed: Bool -
Trueif pedestrians can access the segment in the given directionDeclaration
Swift
public var pedestrianAllowed: Bool -
Trueif scooters can access the segment in the given directionDeclaration
Swift
public var scooterAllowed: Bool -
Trueif taxis can access the segment in the given directionDeclaration
Swift
public var taxiAllowed: Bool -
Trueif trucks can access the segment in the given directionDeclaration
Swift
public var truckAllowed: Bool -
init(bicycleAllowed:busAllowed: carAllowed: pedestrianAllowed: scooterAllowed: taxiAllowed: truckAllowed: ) Creates a new instance with default values.
Declaration
Swift
public init(bicycleAllowed: Bool = false, busAllowed: Bool = false, carAllowed: Bool = false, pedestrianAllowed: Bool = false, scooterAllowed: Bool = false, taxiAllowed: Bool = false, truckAllowed: Bool = false)