GeohashKit

0.1

Fast, accurate, fully tested geohashing library for Swift
maximveksler/GeohashKit

What's New

Backed Potato

2015-05-15T11:01:30Z

Supporting encode, decode and neighbors lookup.

Carthage compatible

GeohashKit

Decode

Geohash.decode("ezs42")! // (latitude: 42.60498046875, longitude: -5.60302734375)

Neighbors

Geohash.neighbors("u000")! // ["u001", "u003", "u002", "spbr", "spbp", "ezzz", "gbpb", "gbpc"]

Encode

Geohash.encode(latitude: 42.6, longitude: -5.6) // "ezs42"
Specify desired precision
Geohash.encode(latitude: -25.382708, longitude: -49.265506, 12) // "6gkzwgjzn820"

Description

  • Swift Tools
View More Packages from this Author

Dependencies

  • None
Last updated: Mon Nov 09 2026 14:58:25 GMT-1000 (Hawaii-Aleutian Standard Time)