GEORADIUS_RO · Valkey

GEORADIUS_RO

Returns members from a geospatial index that are within a distance from a coordinate.

Usage

GEORADIUS_RO key longitude latitude radius <M | KM | FT | MI> [WITHCOORD] [WITHDIST] [WITHHASH] [COUNT count [ANY]] [ASC | DESC]

Description

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.

Reply

One of the following:

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.

ACL Categories

@geo @read @slow

History

See also

GEOADD, GEODIST, GEOHASH, GEOPOS, GEOSEARCH, GEOSEARCHSTORE.