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, so there could be a few bugs and unexpected behaviors. Related APIs may change for new releases without a deprecation process.

  • True if bicycles can access the segment in the given direction

    Declaration

    Swift

    public var bicycleAllowed: Bool
  • True if buses can access the segment in the given direction

    Declaration

    Swift

    public var busAllowed: Bool
  • True if cars can access the segment in the given direction

    Declaration

    Swift

    public var carAllowed: Bool
  • True if pedestrians can access the segment in the given direction

    Declaration

    Swift

    public var pedestrianAllowed: Bool
  • True if scooters can access the segment in the given direction

    Declaration

    Swift

    public var scooterAllowed: Bool
  • True if taxis can access the segment in the given direction

    Declaration

    Swift

    public var taxiAllowed: Bool
  • True if trucks can access the segment in the given direction

    Declaration

    Swift

    public var truckAllowed: Bool
  • 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)