Class AvoidBoundingBoxAreaOptions

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

  • public final class AvoidBoundingBoxAreaOptions
    extends java.lang.Object

    The options to specify rectangular shape which routes must not cross.

    • Field Detail

      • avoidBoundingBoxArea

        @NonNull
        public GeoBox avoidBoundingBoxArea

        Area of rectangular shape which routes must not cross. Strictly enforced. Note: Violations are reported as [sdk.routing.SectionNoticeCode.VIOLATED_BLOCKED_ROAD]. This avoidance option is not supported for IsolineOptions. If it is defined for isoline calculation then an [sdk.routing.RoutingError.INVALID_PARAMETER] error is generated.

      • boundingBoxExceptionAreas

        @NonNull
        public java.util.List<GeoBox> boundingBoxExceptionAreas

        Areas of rectangular shape to exclude from avoidance.

      • polygonExceptionAreas

        @NonNull
        public java.util.List<GeoPolygon> polygonExceptionAreas

        Areas of polygon shape to exclude from avoidance.

      • corridorExceptionAreas

        @NonNull
        public java.util.List<GeoCorridor> corridorExceptionAreas

        Areas of corridor shape to exclude from avoidance. Note: Even though GeoCorridor.half_width_in_meters is an optional property in case of exception areas it is mandatory. Otherwise route calculation will fail with an [sdk.routing.RoutingError.INVALID_PARAMETER] error.

    • Constructor Detail

      • AvoidBoundingBoxAreaOptions

        public AvoidBoundingBoxAreaOptions​(@NonNull
                                           GeoBox avoidBoundingBoxArea)

        Creates a new instance.

        Parameters:
        avoidBoundingBoxArea -

        Area of rectangular shape which routes must not cross. Strictly enforced. Note: Violations are reported as [sdk.routing.SectionNoticeCode.VIOLATED_BLOCKED_ROAD]. This avoidance option is not supported for IsolineOptions. If it is defined for isoline calculation then an [sdk.routing.RoutingError.INVALID_PARAMETER] error is generated.

    • 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