GEOSEARCHSearch members within a radius or box from a member or coordinate.
| 语法 | GEOSEARCH key FROMMEMBER member|FROMLONLAT longitude latitude BYRADIUS radius m|km|mi|ft|BYBOX width height m|km|mi|ft [ASC|DESC] [COUNT count [ANY]] [WITHCOORD] [WITHDIST] [WITHHASH] |
| 分组 | geo |
| 参数个数 | -4 |
| 起始版本 | 1.0.0 |
| 标志 | readonly |
| 复杂度 | O(log N + C) — up to nine neighbour ranges, each a seeked slice of the score tree; C = members inside the matched geohash cells (the block bound now prunes iteration too, not just distance maths) |
| Redis 兼容性 | differs: STOREDIST is accepted and ignored on the read-only form; COUNT 0 is an error |