GEOPOS

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

Get longitude and latitude

Usage: geopos key member
Returns longitude and latitude. The stored value is converted to a 52-bit geohash, so the returned value can be slightly different.

Example

Command>GEOPOS map seoul
Result>1) 1) "126.97797149419784546"
    2) "37.56653579238348328"

Syntax

GEOPOS key member [member ...]

  • Available since version 3.2.0.
  • Time complexity is O(log(N)). N is the number of members stored in the Sorted Set.

<< GEOADD GEOPOS GEODIST >>

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