There's more...

The Geo set is actually stored as a sorted set (zset in Redis) and all the commands in a sorted set can be applied to the Geo data type. For example, removing a Geo index from a Geo set can be done by ZREM, and retrieving all the members of a Geo set can be achieved by ZRANGE.

For your reference, the implementation of GEOHASH is based on a 52-bit integer representation (which gives an accuracy of less than 1 meter). When a standard GEOHASH string is needed, you can call GEOHASH to get a string whose length is 11.

For performance concerns, GEORADIUS has the time complexity of O(N+log(M)) where N is the number of elements inside the bounding box of the circular area delimited by center and radius, according to the documents ...

Get Redis 4.x Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.