kevy4.0

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]
Group
Geo
Since
1.0.0
Arity
at least 4
Flags
readonly

Complexity

O(N) per call — up to nine neighbour ranges, each fetched with a full zset scan; the geohash block prunes distance maths, not iteration

Complexity and compatibility are read out of kevy's implementation, not copied from Redis's reference. Several genuinely differ.

Redis compatibility

Differs

STOREDIST is accepted and ignored on the read-only form; COUNT 0 is an error

See also

GEOADDGEODISTGEOHASHGEOPOSGEORADIUSGEORADIUSBYMEMBERGEOSEARCHSTORE

← All commands