Isoline

public class Isoline
extension Isoline: NativeBase
extension Isoline: Hashable

Represents an isoline polygon around a center point. Any possible route between the center and any point on the edges of the polygon can be travelled within the given range restriction. The edges of the polygon are not guaranteed to be on the road as all reachable road endpoints are smoothened to fit into one polygon shape. This process can be influenced by setting IsolineOptions.Calculation.maxPoints.

  • Constructs an isoline instance. This instance is provided by the CalculateIsolineCompletionHandler.

    Declaration

    Swift

    public init(rangeType: IsolineRangeType, rangeValue: Double, center: MapMatchedCoordinates, polygons: [GeoPolygon])

    Parameters

    rangeType

    Specifies the range type of the provided Isoline.init(...).rangeValue list.

    rangeValue

    A list of range values. At least one value must be set.

    center

    The center of the isoline.

    polygons

    A list of polygons that belong to this isoline. At least one value must be set.

  • Specifies the type of the restriction that was used to calculate this isoline.

    Declaration

    Swift

    public var rangeType: IsolineRangeType { get }
  • Specifies the numerical value of the restriction that was used to calculate this isoline.

    Declaration

    Swift

    public var rangeValue: Double { get }
  • The center point that was used to calculate this isoline. Specifies the center point that was used to calculate this isoline. This includes the original center that was passed to the RoutingEngine.

    Declaration

    Swift

    public var center: MapMatchedCoordinates { get }
  • A list of polygons that belong to this isoline. An isoline can consist of multiple polygons. For example, islands that can be reached by a ferry are included. Each island is then represented as a separate polygon. However, in most cases only a single polygon is included.

    Declaration

    Swift

    public var polygons: [GeoPolygon] { get }