Class SectionNotice

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

public final class SectionNotice extends Object

Explains an issue encountered in a Section.

  • Field Details

    • code

      @NonNull public SectionNoticeCode code

      The notice code.

    • severity

      @NonNull public NoticeSeverity severity

      The notice severity.

    • violatedRestrictions

      @NonNull public List<ViolatedRestriction> violatedRestrictions

      The following property violated_restrictions contains the notice detail information. Only three types of restrictions can have notice details: time dependent restriction, vehicle restriction and transport mode restriction. There is no one-to-one match of the SectionNotice.code and these three restriction types. For example, if SectionNotice.code is SectionNoticeCode.VIOLATED_VEHICLE_RESTRICTION, then it can be either vehicle restriction or transport mode restriction. If SectionNotice.code is SectionNoticeCode.SEASONAL_CLOSURE, then it is time dependent restriction. If the section notice is none of the above-mentioned three types, then this will be an empty list.

  • Constructor Details

    • SectionNotice

      public SectionNotice(@NonNull SectionNoticeCode code, @NonNull NoticeSeverity severity)

      Creates a new instance.

      Parameters:
      code -

      The notice code.

      severity -

      The notice severity.

  • Method Details