turf-swift
turf-swift copied to clipboard
A Swift language port of Turf.js.
We have been working on trying to detect if a polygon intersects itself when a user is drawing a polygon on the map in realtime or after a user completes...
[`LineString.simplify(tolerance:highestQuality:)`](https://mapbox.github.io/turf-swift/2.3.0/Structs/LineString.html#/s:4Turf10LineStringV8simplify9tolerance14highestQualityySd_SbtF) and [`simplified(tolerance:highQuality:)`](https://mapbox.github.io/turf-swift/2.3.0/Structs/LineString.html#/s:4Turf10LineStringV10simplified9tolerance14highestQualityACSd_SbtF) are based on [simplify-js](https://github.com/mourner/simplify-js/), which is fine for certain simplification use cases. However, sampling the input to a map matching algorithm requires interpolating points along a straightaway:...
The [`lineChunk`](https://turfjs.org/docs/#lineChunk) method should be ported to this library: > Divides a [LineString](https://tools.ietf.org/html/rfc7946#section-3.1.4) into chunks of a specified length. If the line is shorter than the segment length then the...
This library’s GeoJSON types should have initializers that take [WKT-formatted](https://en.wikipedia.org/wiki/Well-known_text_representation_of_geometry) strings and properties that return WKT-formatted strings. This format is more compact than GeoJSON but more expressive than the Encoded...
Along the lines of #158, there should be a `JSONValueConvertible` protocol that provides more flexibility in converting types to `JSONValue`, `JSONArray`, and `JSONObject`. #159 initially implemented this protocol, but I...
Hi, Is it possible to find intersection between polygon and lineString objects? Are you going to implement that method? -- Paweł
We should adapt the work @chezzdev did in mapbox/mapbox-navigation-ios#3439 mapbox/mapbox-navigation-ios#3469 to run the jazzy documentation generation script on CI for every PR and push it to publisher-production for release tags....
Is there any roadmap for the addition of altitude data ([by convention](https://www.rfc-editor.org/rfc/pdfrfc/rfc7946.txt.pdf) the 3 Double in the array of Coords in a Geometry LineString Object is an optional altitude value)....
0.5.0 to 1.2.0 versions are not giving me right values for LineString.closestCoordinate(to:) function. My project's current version is 0.3.0 and was able to calculate re-route when the distance between the...
As of apple/swift-package-manager#3053 and [Swift 5.4](https://swift.org/blog/swift-5-4-released/), SPM now supports automatic test discovery on Linux. LinuxMain.swift is now deprecated. We should remove that file to take advantage of automatic test discovery,...