Class AvoidanceOptions
Class AvoidanceOptions
- java.lang.Object
-
- com.here.sdk.routing.AvoidanceOptions
-
public final class AvoidanceOptions extends java.lang.ObjectThe options to specify restrictions for route calculations.
-
-
Field Summary
Fields Modifier and Type Field Description java.util.List<AvoidBoundingBoxAreaOptions>avoidBoundingBoxAreasOptionsList of rectangular shapes which routes must not cross and additional options for this area.java.util.List<AvoidCorridorAreaOptions>avoidCorridorAreasOptionsList of corridor shapes which routes must not cross and additional options for this area.java.util.List<TruckRoadType>avoidedTruckRoadTypesSpecifies a list of avoided truck road types for vehicle.java.util.List<AvoidPolygonAreaOptions>avoidPolygonAreasOptionsList of polygon shapes which routes must not cross and additional options for this area.java.util.List<CountryCode>countriesCountries that the route must avoid.java.util.List<java.lang.String>exceptZoneIdsException toAvoidanceOptions.zone_categories, which can be specified by list of zone identifiers.java.util.List<RoadFeatures>roadFeaturesFeatures which routes should avoid.java.util.List<SegmentReference>segmentsSegments that routes will avoid going through.java.util.List<ZoneCategory>zoneCategoriesZone categories which routes must not cross.java.util.List<java.lang.String>zoneIdsList containing identifiers of zones that routes should avoid going through.
-
Constructor Summary
Constructors Constructor Description AvoidanceOptions()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
-
roadFeatures
@NonNull public java.util.List<RoadFeatures> roadFeatures
Features which routes should avoid. Best effort only (not enforced).
-
countries
@NonNull public java.util.List<CountryCode> countries
Countries that the route must avoid. Strictly enforced. Violations are reported as
SectionNoticeCode.VIOLATED_BLOCKED_ROAD. Note: This avoidance option is not supported inIsolineOptionsfor isoline calculation.
-
avoidBoundingBoxAreasOptions
@NonNull public java.util.List<AvoidBoundingBoxAreaOptions> avoidBoundingBoxAreasOptions
List of rectangular shapes which routes must not cross and additional options for this area.
-
avoidPolygonAreasOptions
@NonNull public java.util.List<AvoidPolygonAreaOptions> avoidPolygonAreasOptions
List of polygon shapes which routes must not cross and additional options for this area. Note: Currently, the maximum count of polygons is limited to 20.
-
avoidCorridorAreasOptions
@NonNull public java.util.List<AvoidCorridorAreaOptions> avoidCorridorAreasOptions
List of corridor shapes which routes must not cross and additional options for this area. Note: Currently, the maximum count of corridors is limited to 20.
-
zoneCategories
@NonNull public java.util.List<ZoneCategory> zoneCategories
Zone categories which routes must not cross. Strictly enforced. Violations are reported as
SectionNoticeCode.VIOLATED_ZONE_RESTRICTION.
-
segments
@NonNull public java.util.List<SegmentReference> segments
Segments that routes will avoid going through. Violations are reported as
SectionNoticeCode.VIOLATED_BLOCKED_ROAD.Notes:
- This avoidance option is not supported in
IsolineOptionsfor isoline calculation. - The engine does not support an unlimited number of segments to avoid. The limit is defined by the HERE backend services and may change. For now, the maximum number of segments to avoid should be below 250. This value may change on the backend and it is therefore not guaranteed to be stable.
- This avoidance option is not supported in
-
exceptZoneIds
@NonNull public java.util.List<java.lang.String> exceptZoneIds
Exception to
AvoidanceOptions.zone_categories, which can be specified by list of zone identifiers. e.g. the format of ID is likehere:cm:envzone:2. Information about the various routing zones originates from the respective catalogs of platform.here.com. For example, more information on zone IDs for Environmental Zones is available under "https://platform.here.com/data/hrn:here:data::olp-here:rib-2/environmental-zones/overview".
-
zoneIds
@NonNull public java.util.List<java.lang.String> zoneIds
List containing identifiers of zones that routes should avoid going through. e.g. the format of ID is like
here:cm:envzone:2. Information about the various routing zones originates from the respective catalogs of platform.here.com. For example, more information on zone IDs for Environmental Zones is available under "https://platform.here.com/data/hrn:here:data::olp-here:rib-2/environmental-zones/overview".
-
avoidedTruckRoadTypes
@NonNull public java.util.List<TruckRoadType> avoidedTruckRoadTypes
Specifies a list of avoided truck road types for vehicle. Refer to
TruckRoadTypefor the available options.
-
-