Geohash PHP Class

I was intrigued by the algorithm used to create “geohashes” and so I wrote this PHP class to encode and decode them.

It comes with a test harness and passes enough tests to reasonably sure it is compatible with the reference implementation at geohash.org. That said, I’d regard it as beta – I’m sure the code could be heavily optimised, but might serve as base for translation into other languages.

Download geohash.tar.gz (15Kb)

11 thoughts on “Geohash PHP Class

  1. Pingback: 2010/03/10に気になったこと | debeso

  2. https://subwaytosecaucus.com/lise-taban-puanlar-2020-y-zdelik-dilimler,

    What i don’t realize is in truth how you are
    no longer really a lot more smartly-liked than you may be right now.
    You are very intelligent. You already know thus considerably in the case
    of this matter, produced me personally imagine it from a lot of various angles.

    Its like women and men are not involved until it’s something to do
    with Girl gaga! Your individual stuffs excellent. Always
    maintain it up!

  3. a

    Hi there, of course this post is really pleasant and
    I have learned lot of things from it about blogging.
    thanks.

Leave a Reply

Your email address will not be published.