mirror of
https://github.com/fluencelabs/redis
synced 2025-05-10 09:47:12 +00:00
Adjusts accuracy for GEODIST
This commit is contained in:
parent
79e553a58d
commit
9de844603c
@ -772,6 +772,6 @@ void geodistCommand(client *c) {
|
|||||||
if (!decodeGeohash(score1,xyxy) || !decodeGeohash(score2,xyxy+2))
|
if (!decodeGeohash(score1,xyxy) || !decodeGeohash(score2,xyxy+2))
|
||||||
addReply(c,shared.nullbulk);
|
addReply(c,shared.nullbulk);
|
||||||
else
|
else
|
||||||
addReplyDouble(c,
|
addReplyDoubleDistance(c,
|
||||||
geohashGetDistance(xyxy[0],xyxy[1],xyxy[2],xyxy[3]) / to_meter);
|
geohashGetDistance(xyxy[0],xyxy[1],xyxy[2],xyxy[3]) / to_meter);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user