TestsTested | ✓ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | Jun 2017 |
SwiftSwift Version | 3.0 |
SPMSupports SPM | ✗ |
Maintained by Jonah Witcig.
GeohashKit is a native Swift implementation of the geohash hashing algorithem. Supporting encode, decode and neighbor search.
Geohash.encode(latitude: 42.6, longitude: -5.6) // "ezs42"
Geohash.encode(latitude: -25.382708, longitude: -49.265506, 12) // "6gkzwgjzn820"
Geohash.decode("ezs42")! // (latitude: 42.60498046875, longitude: -5.60302734375)
Geohash.neighbors("u000")! // ["u001", "u003", "u002", "spbr", "spbp", "ezzz", "gbpb", "gbpc"]
GeohashKit is distribured with Carthage.
github "maximveksler/GeohashKit"
to your Cartfile
carthage update --use-submodules
to build the FrameworkMIT License (MIT)