Redis · Command
GEOSEARCH
GEOSEARCH finds members in a Redis geospatial index inside a circle or box. It can return names, ordering, limits, coordinates, distances, or geohash scores.
Last updated
- Since
- 6.2.0
Syntax
GEOSEARCH key <FROMMEMBER member | FROMLONLAT longitude latitude> <BYRADIUS radius <M | KM | FT | MI> | BYBOX width height <M | KM | FT | MI>> [ASC | DESC] [COUNT count [ANY]] [WITHCOORD] [WITHDIST] [WITHHASH]In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
GEOADDGEODISTGEOHASHGEOPOSGEORADIUSGEORADIUS_ROGEORADIUSBYMEMBERGEORADIUSBYMEMBER_RO