地理位置 Geo 相关命令
GEOADD key longitude latitude member [longitude latitude member ...]
Add one or more geospatial items in the geospatial index represented using a sorted set
GEOHASH key member [member ...]
Returns members of a geospatial index as standard geohash strings
GEOPOS key member [member ...]
Returns longitude and latitude of members of a geospatial index
GEODIST key member1 member2 [m|km|ft|mi]
Returns the distance between two members of a geospatial index
GEORADIUS key longitude latitude radius m|km|ft|mi [WITHCOORD] [WITHDIST] [WITHHASH] [COUNT count] [ASC|DESC] [STORE key] [STOREDIST key]
Query a sorted set representing a geospatial index to fetch members matching a given maximum distance from a point
GEORADIUSBYMEMBER key member radius m|km|ft|mi [WITHCOORD] [WITHDIST] [WITHHASH] [COUNT count] [ASC|DESC] [STORE key] [STOREDIST key]
Query a sorted set representing a geospatial index to fetch members matching a given maximum distance from a member