February 2018
Intermediate to advanced
382 pages
11h 33m
English
When the coordinates are set via GEOADD, they will be internally converted into a 52-bit GEOHASH, which is a Geo-encoding system that is commonly accepted. You should take into consideration that there is a slight difference between the Geo stored and the coordinates returned by GEOPOS, so you should not expect the two to be exactly the same.
In the commands GEORADIUS and GEORADIUSBYMEMBER, you can use the WITHDIST option to obtain the distances. The ASC/DESC option makes the result returned appear in ascending or descending order. In addition, with the option STORE/STOREDIST, you can also store the result returned by GEORADIUS and GEORADIUSBYMEMBER to another Geo set in Redis.
Read now
Unlock full access