mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-22 16:18:28 -05:00
Adjusts accuracy for GEODIST
This commit is contained in:
parent
cf42c48adc
commit
4e9c3027b1
@ -767,6 +767,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…
Reference in New Issue
Block a user