VehicleSpecificAccess

public struct VehicleSpecificAccess : Hashable

Access regulation for a specific vehicle type on a road segment.

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.

  • If true, access is only permitted with a special permit.

    Declaration

    Swift

    public var isPermitBased: Bool
  • Physical structure (e.g. bridge or tunnel) to which this access regulation applies.

    Declaration

    Swift

    public var physicalStructure: PhysicalStructure
  • Stores the number of Lanes present, if a truck is not allowed on the innermost lane. If this field is nil, no restriction for innermost lane

    If a regulation indicates trucks are not allowed on the innermost lane if the road has three or more lanes, the value “3” is applied as that is the minimum lane count for which the regulation is applicable.

    However, there might be cases where multiple innermost lanes are restricted. For example value 3 will be used when vehicles are only allowed to drive the 2 outer most lanes in case of 3 or more lanes motorway.

    Declaration

    Swift

    public var noTruckInnermostLane: Int32?
  • Conditions under which this access regulation is active.

    Declaration

    Swift

    public var condition: VehicleRestrictionCondition
  • Creates a new instance with specified parameters.

    • Parameters

      • isPermitBased: If true, access is only permitted with a special permit.
      • physicalStructure: Physical structure (e.g. bridge or tunnel) to which this access regulation applies.
      • noTruckInnermostLane: Stores the number of Lanes present, if a truck is not allowed on the innermost lane. If this field is nil, no restriction for innermost lane

      If a regulation indicates trucks are not allowed on the innermost lane if the road has three or more lanes, the value “3” is applied as that is the minimum lane count for which the regulation is applicable.

      However, there might be cases where multiple innermost lanes are restricted. For example value 3 will be used when vehicles are only allowed to drive the 2 outer most lanes in case of 3 or more lanes motorway.

      • condition: Conditions under which this access regulation is active.

    Declaration

    Swift

    public init(isPermitBased: Bool, physicalStructure: PhysicalStructure, noTruckInnermostLane: Int32? = nil, condition: VehicleRestrictionCondition)