- Usage:
-
GEORADIUS_RO key longitude latitude radius 〈 m | km | ft | mi 〉 [ WITHCOORD ] [ WITHDIST ] [ WITHHASH ] [ COUNT count [ ANY ] ] [ ASC | DESC ]
- Complexity:
- O(N+log(M)) where N is the number of elements inside the bounding box of the circular area delimited by center and radius and M is the number of items inside the index.
- Since:
- 3.2.10
- ACL Categories:
- @geo, @read, @slow
-
If no
WITH*
option is specified, an Array reply of matched member names -
If
WITHCOORD
,WITHDIST
, orWITHHASH
options are specified, the command returns an Array reply of arrays, where each sub-array represents a single item:-
The distance from the center as a floating point number, in the same unit specified in the radius.
-
The Geohash integer.
-
The coordinates as a two items x,y array (longitude,latitude).
-
Read-only variant of the GEORADIUS
command.
This command is identical to the GEORADIUS
command, except that it doesn't support the optional STORE
and STOREDIST
parameters.
Alternative
GEOSEARCH
with the BYRADIUS
argument.
RESP2/RESP3 Reply
One of the following:
History
Version | Change |
---|---|
6.2.0 | Added the |
7.0.0 | Added support for uppercase unit names. |