kevy

GEOSEARCH

Search 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

← 全部命令