Available since: 3.2.0
Time complexity: O(log(N)) for each member requested, where N is the number of elements in the sorted set.
Normally Redis represents positions of elements using a variation of the Geohash technique where positions are encoded using 52 bit integers. The encoding is also different compared to the standard because the initial min and max coordinates used during the encoding and decoding process are different. This command however returns a standard Geohash in the form of a string as described in the Wikipedia article and compatible with the geohash.org web site.
The command returns 11 characters Geohash strings, so no precision is lost compared to the Redis internal 52 bit representation. The returned Geohashes have the following properties:
geohash.orgURLs such as
http://geohash.org/<geohash-string>. This is an example of such URL.
Array reply, specifically:
The command returns an array where each element is the Geohash corresponding to each member name passed as argument to the command.