GeoJSON 0.3.3

GeoJSON 0.3.3

测试已测试
语言语言 SwiftSwift
许可证 MIT
发布最后发布2018年10月
SPM支持SPM

Harlan HaskinsNic Manoogian维护。



GeoJSON 0.3.3

  • 作者
  • Harlan Haskins

GeoJSON

Swift 4.0的GeoJSON模型。兼容iOS 8及以上版本。对于更早版本的Swift和Xcode 7,请使用版本0.2.0

Version License Platform

使用

要运行示例项目,请克隆仓库,然后首先从Example目录运行pod install

示例

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] 
*/

安装

GeoJSON可通过CocoaPods获取。要安装它,请简单地添加以下行到您的Podfile中:

pod "GeoJSON"

维护者

Adam Binsz (@adambinsz)

作者

Harlan Haskins (@harlanhaskins)

许可

GeoJSON采用MIT许可证。有关更多信息,请参阅LICENSE文件。