geodist
GEODIST
Apply for Redis Developer Course
|
Redis Regular Inspection / Technical Support
|
Redis Enterprise Server
|
|---|
Get the distance between two locations
Usage: geodist key member1 member2 km
Returns the distance between two locations.
Units are m(meter), km(kilometer), mi(mile), ft(feet).
The default unit is meter.
Example
| Command> | GEODIST map seoul daejeon km |
| Result> | "140.0080" |
Syntax
GEODIST key member1 member2 [unit]
- Available since version 3.2.0.
- Time complexity is O(log(N)). N is the number of members stored in the Sorted Set.
| << GEOPOS | GEODIST | GEORADIUSBYMEMBER >> |
|---|
Email
답글이 올라오면 이메일로 알려드리겠습니다.
