GEOHASH key member [member …]

    Time complexity: O(log(N)) for each member requested, where N is the number of elements in the sorted set.

    Return valid strings representing the position of one or more elements in a sorted set value representing a geospatial index (where elements were added using GEOADD).

    The command returns 10 characters Geohash strings, so only two bits of precision are lost compared to the Redis internal 52 bit representation, but this loss doesn't affect the precision in a sensible way: normally geohashes are cut to up to 8 characters, giving anyway a precision of +/- 0.019 km.

    • Geo hashes can be shortened removing characters from the right. It will lose precision but will still point to the same area.
    • It is possible to use them in URLs such as ;. This is an example of such URL.

    , specifically:

    redis> GEOADD Sicily 13.361389 38.115556 "Palermo" 15.087269 37.502669 "Catania"

    redis> GEOHASH Sicily Palermo Catania

    1. 1) "sqc8b49rny0"
    2. 2) "sqdtr74hyu0"
    redis>