Class ViolatedRestriction

java.lang.Object
com.here.sdk.routing.ViolatedRestriction

public final class ViolatedRestriction extends Object

ViolatedRestriction contains all the violated restriction details for the planned trip.

  • Field Details

    • cause

      @NonNull public String cause

      Cause of the notice. Human readable description of the notice, for example "Route violates vehicle restriction". It will be EN-US text only.

    • timeDependent

      public boolean timeDependent

      Indicates that restriction depends on time.

    • details

      @Nullable public ViolatedRestriction.Details details

      The detailed information of restriction depending on the specific violation. For time dependent restriction or transport mode restriction, this property will be null. For vehicle restriction, the corresponding member will be set, for example, if the vehicle violates the maximum allowed gross weight for a specific route, the max_gross_weight_in_kilograms will be set with the maximum allowed gross weight for this route.

  • Constructor Details

    • ViolatedRestriction

      public ViolatedRestriction(@NonNull String cause, boolean timeDependent)

      Creates a new instance.

      Parameters:
      cause -

      Cause of the notice. Human readable description of the notice, for example "Route violates vehicle restriction". It will be EN-US text only.

      timeDependent -

      Indicates that restriction depends on time.

  • Method Details