This is a (selected) copy of github.com/mmcloughlin/geohash with the latitude range changed from 90 to ~85, to align with the algorithm use by Redis.