Yet another GeoJSON library in Swift. This is a tiny framework with a focus on simplicity, use of Swift's enums and parsing performance.
Note: There's no full support for
Codable. It's provided for the
GeoJSON.GeometryObject part. That's on purpose and there are other libraries listed below that fully support
Codable, if that's what you're after.
This package has various extensions:
- GeoJSONKit+Turf for powerful spatial analysis, all in Swift
- GeoJSONKit+GEOS for interfacing with the Geometry Engine - Open Source
- GeoJSONKit+Vapor for server-side usage
Swift Package Manager
To install GeoJSONKit using the Swift Package Manager, add the following package to the
dependencies in your Package.swift file:
.package(url: "https://github.com/maparoni/geojsonkit.git", from: "0.5.0")
import GeoJSONKit in any Swift file in your module.