Class VehicleSpecificAccess

java.lang.Object
com.here.sdk.mapdata.VehicleSpecificAccess

public final class VehicleSpecificAccess extends Object

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.

  • Field Details

    • isPermitBased

      public boolean isPermitBased

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

    • physicalStructure

      @NonNull public PhysicalStructure physicalStructure

      Physical structure (e.g. bridge or tunnel) to which this access regulation applies.

    • noTruckInnermostLane

      @Nullable public Integer noTruckInnermostLane

      Stores the number of Lanes present, if a truck is not allowed on the innermost lane. If this field is null, 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

      @NonNull public VehicleRestrictionCondition condition

      Conditions under which this access regulation is active.

  • Constructor Details

    • VehicleSpecificAccess

      public VehicleSpecificAccess(boolean isPermitBased, @NonNull PhysicalStructure physicalStructure, @NonNull VehicleRestrictionCondition condition)

      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.

      condition -

      Conditions under which this access regulation is active.

  • Method Details