Class AvoidPolygonAreaOptions
Class AvoidPolygonAreaOptions
- java.lang.Object
-
- com.here.sdk.routing.AvoidPolygonAreaOptions
-
public final class AvoidPolygonAreaOptions extends java.lang.ObjectThe options to specify polygon shape which routes must not cross.
-
-
Field Summary
Fields Modifier and Type Field Description GeoPolygonavoidPolygonAreaArea of polygon shape which routes must not cross.java.util.List<GeoBox>boundingBoxExceptionAreasAreas of rectangular shape to exclude from avoidance.java.util.List<GeoCorridor>corridorExceptionAreasAreas of corridor shape to exclude from avoidance.java.util.List<GeoPolygon>polygonExceptionAreasAreas of polygon shape to exclude from avoidance.
-
Constructor Summary
Constructors Constructor Description AvoidPolygonAreaOptions(GeoPolygon avoidPolygonArea)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)inthashCode()
-
-
-
Field Detail
-
avoidPolygonArea
@NonNull public GeoPolygon avoidPolygonArea
Area of polygon shape which routes must not cross. Strictly enforced. Violations are reported as
SectionNoticeCode.VIOLATED_BLOCKED_ROAD. Note: This avoidance option is not supported forIsolineOptions. 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_metersis 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
-
AvoidPolygonAreaOptions
public AvoidPolygonAreaOptions(@NonNull GeoPolygon avoidPolygonArea)Creates a new instance.
- Parameters:
avoidPolygonArea-Area of polygon shape which routes must not cross. Strictly enforced. Violations are reported as
SectionNoticeCode.VIOLATED_BLOCKED_ROAD. Note: This avoidance option is not supported forIsolineOptions. If it is defined for isoline calculation then an [sdk.routing.RoutingError.INVALID_PARAMETER] error is generated.
-
-