LaneAccess

public struct LaneAccess : Hashable

A struct which identifies the vehicle type(s) allowed to access a lane.

  • Four-wheel vehicles that are allowed according to national/local vehicle regulations to drive on motorways, ranging from sub-compact cars to full-size vans and light road vehicles.

    Declaration

    Swift

    public var automobiles: Bool
  • Buses that are used for public transportation.

    Declaration

    Swift

    public var buses: Bool
  • Four-wheel vehicles that are usually fitted with a taximeter, that may be hired, along with their driver, to carry passengers to any specified destination.

    Declaration

    Swift

    public var taxis: Bool
  • Represents the sharing of car journeys so that more than one person travels in a car, and prevents the need for others to have to drive to a location themselves.

    Declaration

    Swift

    public var carpools: Bool
  • Persons traveling on foot, whether walking or running.

    Declaration

    Swift

    public var pedestrians: Bool
  • Large vehicles that range from medium to heavy duty trucks.

    Declaration

    Swift

    public var trucks: Bool
  • Passenger vehicles (i.e., those defined as passenger car/automobiles) that are allowed to access roads that have traffic restrictions.

    Declaration

    Swift

    public var throughTraffic: Bool
  • Delivery LaneAccess.trucks that are permitted to enter the city proper to unload goods at businesses.

    Declaration

    Swift

    public var deliveryVehicles: Bool
  • Any vehicle that is designated and authorized to respond to an emergency in a life-threatening situation.

    Declaration

    Swift

    public var emergencyVehicles: Bool
  • Motorized two-wheeled passenger vehicles. Generally, mopeds are considered motorcycles.

    Declaration

    Swift

    public var motorcycles: Bool
  • Creates a new instance.

    Declaration

    Swift

    public init(automobiles: Bool, buses: Bool, taxis: Bool, carpools: Bool, pedestrians: Bool, trucks: Bool, throughTraffic: Bool, deliveryVehicles: Bool, emergencyVehicles: Bool, motorcycles: Bool)