Class ViolatedRestriction.Details

  • java.lang.Object
    • com.here.sdk.routing.ViolatedRestriction.Details
  • Enclosing class:
    ViolatedRestriction

    public static final class ViolatedRestriction.Details
    extends java.lang.Object

    Optional restriction details, contains additional information depending on the specific violation, zero or more member might be set. For example, if the vehicle violates the maximum allowed height during the trip, then the member max_height_in_centimeters will be set with the maximum allowed height value.

    • Field Detail

      • maxWeightPerAxleInKilograms

        @Nullable
        public java.lang.Integer maxWeightPerAxleInKilograms

        Max permitted weight per axle during the trip, in kilograms. This property will be set if the TruckSpecifications.weightPerAxleInKilograms exceeds this value.

      • maxHeightInCentimeters

        @Nullable
        public java.lang.Integer maxHeightInCentimeters

        Max permitted height during the trip, in centimeters. This property will be set if the TruckSpecifications.heightInCentimeters exceeds this value.

      • maxWidthInCentimeters

        @Nullable
        public java.lang.Integer maxWidthInCentimeters

        Max permitted width during the trip, in centimeters. This property will be set if the TruckSpecifications.widthInCentimeters exceeds this value.

      • maxLengthInCentimeters

        @Nullable
        public java.lang.Integer maxLengthInCentimeters

        Max permitted length during the trip, in centimeters. This property will be set if the TruckSpecifications.lengthInCentimeters exceeds this value.

      • forbiddenAxleCount

        @Nullable
        public IntegerRange forbiddenAxleCount

        The restriction to trucks with axles number within specified range during the trip. This property will be set if the TruckSpecifications.axleCount is within this range.

      • forbiddenTrailerCount

        @Nullable
        public IntegerRange forbiddenTrailerCount

        Constrains the restriction to trucks with number of trailer within specified range during the trip. This property will be set if the TruckSpecifications.trailerCount is within this range.

      • forbiddenHazardousGoods

        @NonNull
        public java.util.List<HazardousMaterial> forbiddenHazardousGoods

        There are two lists for our trip: Hazardous goods restrictions applied during the trip, and the list used for the route calculation provided using TruckOptions.hazardousMaterials. This property is the intersection of the two lists.

        Note RoadSignWarning events and RouteViolations are only given for violations that are indicated on a road sign. Additional legal restrictions might apply when transporting hazardous materials.

      • maxTunnelCategory

        @Nullable
        public TunnelCategory maxTunnelCategory

        Tunnel category to restrict transport of specific goods during the trip. This property will be set if the TruckOptions.linkTunnelCategory exceeds this value.

      • forbiddenTruckType

        @Deprecated
        @Nullable
        public TruckType forbiddenTruckType
        Deprecated.

        Will be removed in v4.27.0. Use forbidden_truck_category instead.

        This property will be set if a restriction applies to the value of TruckType parameter used for route calculation.

      • forbiddenTruckCategory

        @Nullable
        public TruckCategory forbiddenTruckCategory

        This property will be set if a restriction applies to the value of TruckCategory parameter used for route calculation.

      • forbiddenTruckRoadTypes

        @NonNull
        public java.util.List<TruckRoadType> forbiddenTruckRoadTypes

        Contains violated restrictions for truck road types.

      • routingZoneReference

        @Nullable
        public java.lang.String routingZoneReference

        Contains the restricted routing zone reference This property will be set if the AvoidanceOptions.zoneCategories is not empty

      • maxPayloadCapacityInKilograms

        @Nullable
        public java.lang.Integer maxPayloadCapacityInKilograms

        Max permitted payload capacity during the trip, in kilograms. This property will be set if the TruckSpecifications.payloadCapacityInKilograms exceeds this value.

      • timeRule

        @Nullable
        public TimeRule timeRule

        Time intervals during which restrictions are enforced.

      • maxNumberOfTires

        @Nullable
        public java.lang.Integer maxNumberOfTires

        Contains the maximum permitted number of tires. This property will be set if the VehicleSpecification.tiresCount exceeds the specified value.

    • Constructor Detail

      • Details

        public Details()

        Creates a new instance.

    • Method Detail

      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object