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
rangeTypeSpecifies the range type of the provided
Isoline.init(...).rangeValuelist.rangeValueA list of range values. At least one value must be set.
centerThe center of the isoline.
polygonsA 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 }