GeoJSON
A GeoJSON Model for Swift 4.0. Compatible with iOS 8 and up. For earlier versions of Swift and Xcode 7 please use version 0.2.0
Usage
To run the example project, clone the repo, and run pod install
from the Example directory first.
Examples
let geoJSONDictionary: [String: AnyObject] = [
"coordinates": [-77.595453, 43.155059],
"type": "Point"
]
guard let point = GeoJSONPoint(dictionary: geoJSONDictionary) else { return }
print(point.dictionaryRepresentation)
/*
[properties: {
}, geometry: {
coordinates = (
"-77.59545300000001",
"43.155059"
);
type = Point;
}, type: Feature]
*/
Installation
GeoJSON is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "GeoJSON"
Maintainer
Adam Binsz (@adambinsz)
Author
Harlan Haskins (@harlanhaskins)
License
GeoJSON is available under the MIT license. See the LICENSE file for more info.