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

  • public final class SectionNotice
    extends java.lang.Object

    Explains an issue encountered in a Section.

    • Field Detail

      • severity

        @NonNull
        public NoticeSeverity severity

        The notice severity.

      • violatedRestrictions

        @NonNull
        public java.util.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 Detail

      • SectionNotice

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

        Creates a new instance.

        Parameters:
        code -

        The notice code.

        severity -

        The notice severity.

    • 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