GEOSEARCHSTORE

Apply for Redis Developer Course Redis Regular Inspection / Technical Support Redis Enterprise Server

GEOSEARCHSTORE

Search nearby cities from a given city or coordinates and store them in another key.
Usage is almost the same as GEOSEARCH.

Specify the destination key

This is required.

Example

Command>GEOSEARCHSTORE map2 map FROMMEMBER seoul BYRADIUS 200 km
Result>3

Syntax

GEOSEARCHSTORE destination source [FROMMEMBER member]
[FROMLONLAT longitude latitude] [BYRADIUS radius m|km|ft|mi]
[BYBOX width height m|km|ft|mi] [ASC|DESC] [COUNT count [ANY]] [STOREDIST]

  • Available since version 6.2.0.
  • Time complexity is O(N+log(M)).

<< GEOSEARCH GEOSEARCHSTORE Connection Introduction >>

Email 답글이 올라오면 이메일로 알려드리겠습니다.