GeoJSON 0.3.3

GeoJSON 0.3.3

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Oct 2018
SPMSupports SPM

Maintained by Harlan Haskins, Nic Manoogian.



GeoJSON 0.3.3

  • By
  • Harlan Haskins

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

Version License Platform

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.