Swiftpack.co - Package - hactar/CodableGeoJSON

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

Dependencies

Used By

Total: 0

Releases

1.0.18 -

1.0.17 -

1.0.16 -

-

-

-

-

-