Functions
The following functions are available globally.
-
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public func == (lhs: CLLocationCoordinate2D, rhs: CLLocationCoordinate2D) -> Bool
-
Return false if latitude or longitude are outside their allowed ranges: [-85, 85] and [-180, 180] respectively. Method replaces default CLLocationCoordinate2DIsValid because it has different constraints than the renderer implementation.
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public func CLLocationCoordinate2DIsMichiValid(_ coord: CLLocationCoordinate2D) -> Bool
-
Using Shoelace formula to determine if a sequence of points is ordered in CCW direction. See https://en.wikipedia.org/wiki/Shoelace_formula We perform the operation in doubles, as the precision loss on all the multiplications in the float domain is too big, leading to wrong results for polygons with coordinates differing by a small delta (0.001 was already problematic)
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public func isCcwAndNotEmpty(coordinateArray: [CLLocationCoordinate2D]) -> Bool
-
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public func makeGPXParser() -> GPXParserProtocol
-
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public func makeTTPParser() -> some TTPParserProtocol
-
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public func deg2rad(_ number: Double) -> Double
-
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public func rad2deg(_ number: Double) -> Double