IsolineOptionsCalculation class - routing library - Dart API
IsolineOptionsCalculation
IsolineOptionsCalculation class
Specifies isoline parameters.
Setting at least one limit to IsolineOptionsCalculation.rangeValues is mandatory or the calculation will fail.
Constructors
-
IsolineOptionsCalculation.withDefaults(IsolineRangeType rangeType, List<
int> rangeValues) -
rangeTypeThe range type.rangeValuesRange values.factory -
IsolineOptionsCalculation.withDefaultsAndCalculationMode(IsolineRangeType rangeType, List<
int> rangeValues, IsolineCalculationMode isolineCalculationMode) -
rangeTypeThe range type.rangeValuesRange values.isolineCalculationModeThe isoline calculation mode.factory -
IsolineOptionsCalculation.withDefaultsAndDirection(IsolineRangeType rangeType, List<
int> rangeValues, RoutePlaceDirection isolineDirection) -
rangeTypeThe range type.rangeValuesRange values.isolineDirectionThe isoline direction.factory -
IsolineOptionsCalculation.withNoDefaults(IsolineRangeType rangeType, List<
int> rangeValues, IsolineCalculationMode isolineCalculationMode, int? maxPoints, RoutePlaceDirection isolineDirection) -
rangeTypeThe range type.rangeValuesRange values.isolineCalculationModeThe isoline calculation mode.maxPointsThe max points number.isolineDirectionThe isoline direction.factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isolineCalculationMode ↔ IsolineCalculationMode
-
Specifies how isoline calculation is optimized.
The default waypoint type is IsolineCalculationMode.balanced.
getter/setter pair
- isolineDirection ↔ RoutePlaceDirection
-
Specifies if calculations will be from or to a specific point.
The default isoline direction is RoutePlaceDirection.departure.
getter/setter pair
- maxPoints ↔ int?
-
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.
getter/setter pair
- rangeType ↔ IsolineRangeType
-
Specifies the range of values to be included in the isoline.
getter/setter pair
-
rangeValues
↔ List<
int> -
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.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited