IsolineOptions.Calculation (API Reference)
Class IsolineOptions.Calculation
- Enclosing class:
- IsolineOptions
Specifies isoline parameters.
Setting at least one limit to rangeValues is mandatory or the calculation will fail.
-
Field Summary
FieldsModifier and TypeFieldDescriptionSpecifies how isoline calculation is optimized.Specifies if calculations will be from or to a specific point.Limits the number of points in the resulting isoline polygon.Specifies the range of values to be included in the isoline.A list of ranges. -
Constructor Summary
ConstructorsConstructorDescriptionCalculation(IsolineRangeType rangeType, List<Integer> rangeValues) Calculation(IsolineRangeType rangeType, List<Integer> rangeValues, IsolineCalculationMode isolineCalculationMode) Calculation(IsolineRangeType rangeType, List<Integer> rangeValues, IsolineCalculationMode isolineCalculationMode, Integer maxPoints, RoutePlaceDirection isolineDirection) Calculation(IsolineRangeType rangeType, List<Integer> rangeValues, RoutePlaceDirection isolineDirection) -
Method Summary
-
Field Details
-
rangeType
Specifies the range of values to be included in the isoline.
-
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
Specifies how isoline calculation is optimized. The default waypoint type is
IsolineCalculationMode.BALANCED. -
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
Specifies if calculations will be from or to a specific point. The default isoline direction is
RoutePlaceDirection.DEPARTURE.
-
-
Constructor Details
-
Calculation
- Parameters:
rangeType-The range type.
rangeValues-Range values.
-
Calculation
public Calculation(@NonNull IsolineRangeType rangeType, @NonNull List<Integer> rangeValues, @NonNull RoutePlaceDirection isolineDirection) - Parameters:
rangeType-The range type.
rangeValues-Range values.
isolineDirection-The isoline direction.
-
Calculation
public Calculation(@NonNull IsolineRangeType rangeType, @NonNull List<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 List<Integer> rangeValues, @NonNull IsolineCalculationMode isolineCalculationMode, @Nullable 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.
-