Swiftpack.co - hactar/CodableGeoJSON as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by hactar.
hactar/CodableGeoJSON 1.0.18
Swift library to deal with GeoJSON
⭐️ 1
🕓 3 years ago
.package(url: "https://github.com/hactar/CodableGeoJSON.git", from: "1.0.18")

CodableGeoJson

This is a pure swift 4 implementation of GeoJSON, using Decodable. It is working but incomplete as I only require parts of the GeoJSON spec, but could be expanded.

Implemented: FeatureCollection, Feature, Point, Position, Polygon, MultiPolygon, LineString, MultiLineString

Missing: MultiPoint, GeometryCollection. Properties are Decodable, but are currently not Codeable.

Installation

Use Swift Package Manager.

Usage

let geoJSON =  try JSONDecoder().decode(AnyGeoJSON.self, from: libaries())
print(geoJSON)

GitHub

link
Stars: 1
Last commit: 3 years ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Release Notes

1.0.18
3 years ago

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics