Class IsolineOptions.Calculation

java.lang.Object
com.here.sdk.routing.IsolineOptions.Calculation
Enclosing class:
IsolineOptions

public static final class IsolineOptions.Calculation extends Object

Specifies isoline parameters. Setting at least one limit to rangeValues is mandatory or the calculation will fail.

  • Field Details

    • rangeType

      @NonNull public IsolineRangeType rangeType

      Specifies the range of values to be included in the isoline.

    • rangeValues

      @NonNull public List<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 Isoline is calculated indicating the reachable area. If empty, IsolineOptions object is considered invalid.

    • isolineCalculationMode

      @NonNull public IsolineCalculationMode isolineCalculationMode

      Specifies how isoline calculation is optimized. The default waypoint type is IsolineCalculationMode.BALANCED.

    • maxPoints

      @Nullable public 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 IsolineCalculationMode parameter 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 Details

    • Calculation

      public Calculation(@NonNull IsolineRangeType rangeType, @NonNull List<Integer> rangeValues)
      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.