Class IsolineOptions.Calculation

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

    public static final class IsolineOptions.Calculation
    extends java.lang.Object

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

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

      • 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 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.

    • 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.