diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-01-04 07:19:32 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-01-04 07:19:32 +0000 |
commit | 7480e618ec785ba8a1c74c8a150cffe5880fb3bb (patch) | |
tree | 87422376dd9a7eee55850f0fce9a8bb4c13e44a2 /iredis/data/commands/geosearchstore.md | |
parent | Adding upstream version 1.12.1. (diff) | |
download | iredis-7480e618ec785ba8a1c74c8a150cffe5880fb3bb.tar.xz iredis-7480e618ec785ba8a1c74c8a150cffe5880fb3bb.zip |
Adding upstream version 1.13.0.upstream/1.13.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'iredis/data/commands/geosearchstore.md')
-rw-r--r-- | iredis/data/commands/geosearchstore.md | 25 |
1 files changed, 18 insertions, 7 deletions
diff --git a/iredis/data/commands/geosearchstore.md b/iredis/data/commands/geosearchstore.md index 6a34bfa..2a4fc38 100644 --- a/iredis/data/commands/geosearchstore.md +++ b/iredis/data/commands/geosearchstore.md @@ -1,11 +1,22 @@ This command is like `GEOSEARCH`, but stores the result in destination key. -This command comes in place of the now deprecated `GEORADIUS` and -`GEORADIUSBYMEMBER`. +This command comes in place of the now deprecated `GEORADIUS` and `GEORADIUSBYMEMBER`. -By default, it stores the results in the `destination` sorted set with their -geospatial information. +By default, it stores the results in the `destination` sorted set with their geospatial information. -When using the `STOREDIST` option, the command stores the items in a sorted set -populated with their distance from the center of the circle or box, as a -floating-point number, in the same unit specified for that shape. +When using the `STOREDIST` option, the command stores the items in a sorted set populated with their distance from the center of the circle or box, as a floating-point number, in the same unit specified for that shape. + +@return + +@integer-reply: the number of elements in the resulting set. + +@examples + +```cli +GEOADD Sicily 13.361389 38.115556 "Palermo" 15.087269 37.502669 "Catania" +GEOADD Sicily 12.758489 38.788135 "edge1" 17.241510 38.788135 "edge2" +GEOSEARCHSTORE key1 Sicily FROMLONLAT 15 37 BYBOX 400 400 km ASC COUNT 3 +GEOSEARCH key1 FROMLONLAT 15 37 BYBOX 400 400 km ASC WITHCOORD WITHDIST WITHHASH +GEOSEARCHSTORE key2 Sicily FROMLONLAT 15 37 BYBOX 400 400 km ASC COUNT 3 STOREDIST +ZRANGE key2 0 -1 WITHSCORES +```
\ No newline at end of file |