Class IsolineOptions.Calculation
Class IsolineOptions.Calculation
- java.lang.Object
-
- com.here.sdk.routing.IsolineOptions.Calculation
-
- Enclosing class:
- IsolineOptions
public static final class IsolineOptions.Calculation extends java.lang.ObjectSpecifies isoline parameters. Setting at least one limit to
rangeValuesis mandatory or the calculation will fail.
-
-
Field Summary
Fields Modifier and Type Field Description IsolineCalculationModeisolineCalculationModeSpecifies how isoline calculation is optimized.RoutePlaceDirectionisolineDirectionSpecifies if calculations will be from or to a specific point.java.lang.IntegermaxPointsLimits the number of points in the resulting isoline polygon.IsolineRangeTyperangeTypeSpecifies the range of values to be included in the isoline.java.util.List<java.lang.Integer>rangeValuesA list of ranges.
-
Constructor Summary
Constructors Constructor Description Calculation(IsolineRangeType rangeType, java.util.List<java.lang.Integer> rangeValues)Calculation(IsolineRangeType rangeType, java.util.List<java.lang.Integer> rangeValues, IsolineCalculationMode isolineCalculationMode)Calculation(IsolineRangeType rangeType, java.util.List<java.lang.Integer> rangeValues, IsolineCalculationMode isolineCalculationMode, java.lang.Integer maxPoints, RoutePlaceDirection isolineDirection)Calculation(IsolineRangeType rangeType, java.util.List<java.lang.Integer> rangeValues, RoutePlaceDirection isolineDirection)
-
-
-
Field Detail
-
rangeType
@NonNull public IsolineRangeType rangeType
Specifies the range of values to be included in the isoline.
-
rangeValues
@NonNull public java.util.List<java.lang.Integer> rangeValues
A list of ranges. The unit is defined by the type parameter. Each range defines the maximum allowed value to reach a destination. For each value an
Isolineis calculated indicating the reachable area. If empty,IsolineOptionsobject is considered invalid.
-
isolineCalculationMode
@NonNull public IsolineCalculationMode isolineCalculationMode
Specifies how isoline calculation is optimized. The default waypoint type is
IsolineCalculationMode.BALANCED.
-
maxPoints
@Nullable public java.lang.Integer maxPoints
Limits the number of points in the resulting isoline polygon. If the isoline consists of multiple polygons, the sum of points from all polygons is considered. Note that this parameter does not affect the calculation, but the shape of the polygon. Look at
IsolineCalculationModeparameter to optimize performance. A higher value will result in a more accurate polygon shape. Rendering a polygon with a high number of points can negatively impact rendering performance. The minimum allowed value is 30, lower values will be ignored.
-
isolineDirection
@NonNull public RoutePlaceDirection isolineDirection
Specifies if calculations will be from or to a specific point. The default isoline direction is
RoutePlaceDirection.DEPARTURE.
-
-
Constructor Detail
-
Calculation
public Calculation(@NonNull IsolineRangeType rangeType, @NonNull java.util.List<java.lang.Integer> rangeValues)- Parameters:
rangeType-The range type.
rangeValues-Range values.
-
Calculation
public Calculation(@NonNull IsolineRangeType rangeType, @NonNull java.util.List<java.lang.Integer> rangeValues, @NonNull RoutePlaceDirection isolineDirection)- Parameters:
rangeType-The range type.
rangeValues-Range values.
isolineDirection-The isoline direction.
-
Calculation
public Calculation(@NonNull IsolineRangeType rangeType, @NonNull java.util.List<java.lang.Integer> rangeValues, @NonNull IsolineCalculationMode isolineCalculationMode)- Parameters:
rangeType-The range type.
rangeValues-Range values.
isolineCalculationMode-The isoline calculation mode.
-
Calculation
public Calculation(@NonNull IsolineRangeType rangeType, @NonNull java.util.List<java.lang.Integer> rangeValues, @NonNull IsolineCalculationMode isolineCalculationMode, @Nullable java.lang.Integer maxPoints, @NonNull RoutePlaceDirection isolineDirection)- Parameters:
rangeType-The range type.
rangeValues-Range values.
isolineCalculationMode-The isoline calculation mode.
maxPoints-The max points number.
isolineDirection-The isoline direction.
-
-