mirror of
https://github.com/fluencelabs/redis
synced 2025-07-27 22:41:56 +00:00
Adjusts accuracy for GEODIST
This commit is contained in:
@@ -772,6 +772,6 @@ void geodistCommand(client *c) {
|
||||
if (!decodeGeohash(score1,xyxy) || !decodeGeohash(score2,xyxy+2))
|
||||
addReply(c,shared.nullbulk);
|
||||
else
|
||||
addReplyDouble(c,
|
||||
addReplyDoubleDistance(c,
|
||||
geohashGetDistance(xyxy[0],xyxy[1],xyxy[2],xyxy[3]) / to_meter);
|
||||
}
|
||||
|
Reference in New Issue
Block a user