计算两个成员元素的距离 127.0.0.1:6379> zrange user-location 0 -1 1) "38" 2) "43" 3) "49" 4) "42" 127.0.0.1:6379> geodist user-location 38 43 m "14.1630" 127.0.0.1:6379> geodist user-location 38 43 km "0.0142"
计算两个成员元素的距离
127.0.0.1:6379> zrange user-location 0 -1 1) "38" 2) "43" 3) "49" 4) "42" 127.0.0.1:6379> geodist user-location 38 43 m "14.1630" 127.0.0.1:6379> geodist user-location 38 43 km "0.0142"