Calculation
public struct Calculation
Specifies isoline parameters.
Setting at least one limit to IsolineOptions.Calculation.rangeValues is mandatory or the calculation will fail.
-
Specifies the range of values to be included in the isoline.
Declaration
Swift
public var rangeType: IsolineRangeType -
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.Declaration
Swift
public var rangeValues: [Int32] -
Specifies how isoline calculation is optimized. The default waypoint type is
IsolineCalculationMode.balanced.Declaration
Swift
public var isolineCalculationMode: IsolineCalculationMode -
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.Declaration
Swift
public var maxPoints: Int32? -
Specifies if calculations will be from or to a specific point. The default isoline direction is
RoutePlaceDirection.departure.Declaration
Swift
public var isolineDirection: RoutePlaceDirection -
Declaration
Swift
public init(rangeType: IsolineRangeType, rangeValues: [Int32])Parameters
rangeTypeThe range type.
rangeValuesRange values.
-
Declaration
Swift
public init(rangeType: IsolineRangeType, rangeValues: [Int32], isolineDirection: RoutePlaceDirection)Parameters
rangeTypeThe range type.
rangeValuesRange values.
isolineDirectionThe isoline direction.
-
Declaration
Swift
public init(rangeType: IsolineRangeType, rangeValues: [Int32], isolineCalculationMode: IsolineCalculationMode)Parameters
rangeTypeThe range type.
rangeValuesRange values.
isolineCalculationModeThe isoline calculation mode.
-
Declaration
Swift
public init(rangeType: IsolineRangeType, rangeValues: [Int32], isolineCalculationMode: IsolineCalculationMode, maxPoints: Int32?, isolineDirection: RoutePlaceDirection)Parameters
rangeTypeThe range type.
rangeValuesRange values.
isolineCalculationModeThe isoline calculation mode.
maxPointsThe max points number.
isolineDirectionThe isoline direction.