AvoidCorridorAreaOptions (API Reference)
Class AvoidCorridorAreaOptions
Area of corridor shape which routes must not cross and exceptions for this area.
-
Field Summary
FieldsModifier and TypeFieldDescriptionArea of corridor shape which routes must not cross.Areas of rectangular shape to exclude from avoidance.Areas of corridor shape to exclude from avoidance.Areas of polygon shape to exclude from avoidance. -
Constructor Summary
ConstructorsConstructorDescriptionAvoidCorridorAreaOptions(GeoCorridor avoidCorridorArea) Creates a new instance. -
Method Summary
-
Field Details
-
avoidCorridorArea
Area of corridor 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. Even thoughGeoCorridor.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. -
boundingBoxExceptionAreas
Areas of rectangular shape to exclude from avoidance.
-
polygonExceptionAreas
Areas of polygon shape to exclude from avoidance.
-
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 Details
-
AvoidCorridorAreaOptions
Creates a new instance.
- Parameters:
avoidCorridorArea-Area of corridor 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. Even thoughGeoCorridor.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.
-
-
Method Details