Minh Nguyễn
Minh Nguyễn
GEOSwift, which like JSTS is ultimately derived from the Java Topology Suite, has [a buffering implementation available in Swift](https://github.com/GEOSwift/GEOSwift/blob/1f14661515aabda6ec0d01d6ff8a7a6312a22d4d/GEOSwift/GEOS/GeometryConvertible%2BGEOS.swift#L254-L262).
https://github.com/mapbox/turf-swift/blob/19d184102927cfc6dba49647850c6fd3e1f5f336/Sources/Turf/Turf.swift#L15-L16 turf-point-on-line has since been replaced by [turf-nearest-point-on-line](https://github.com/Turfjs/turf/blob/23d5cb91d77e0c1e2e903a2252f525797f1d0d09/packages/turf-nearest-point-on-line/index.ts), which calls out to [turf-line-intersect](https://github.com/Turfjs/turf/blob/23d5cb91d77e0c1e2e903a2252f525797f1d0d09/packages/turf-line-intersect/index.ts), which at a glance seems to handle two of these issues. > what about the 180th meridian?...
This library has always used `CLLocationCoordinate2D` in order to better integrate with frameworks in the Apple ecosystem such as Core Location. We could define our own `Position` struct with an...
If we move off CLLocationCoordinate2D as the principle data type, we should consider depending on an SPM package that conditionally includes Core Location on Apple platforms, as a more seamless...
In the meantime, [GeoJSON](https://github.com/kiliankoe/GeoJSON/) and [GEOSwift](https://github.com/GEOSwift/GEOSwift/) both support representing altitudes as part of positions.
Request for a method like `tileCover` for estimating tile counts before downloading for offline use.
mapbox/mapbox-gl-native#11504 would expose a similar method to the map SDK for applications already using that SDK, including Objective-C applications.
Request for a method like `tileCover` for estimating tile counts before downloading for offline use.
This could also be useful for SceneKit-related projects that don’t depend on the map SDK. /cc @nitaliano
Hi, your use case sounds interesting. I don’t think anyone is actively working on this function right now, but we’d welcome any contribution of a Swift implementation for it. In...
> Do you think this could have any impact on https://github.com/mapbox/mapbox-navigation-ios/issues/901? Yes, that issue could well be caused by a discrepancy between OSRM and Turf that builds up as per-segment...
For comparison, `CLLocation.distance(from:)` uses an Earth radius of 6 378 137 m: ```swift let nullIsland = CLLocation(latitude: 0, longitude: 0) let antipode = CLLocation(latitude: 0, longitude: 180) let radius = nullIsland.distance(from: antipode) /...