Commit 4e9c3027 authored by Itamar Haber's avatar Itamar Haber
Browse files

Adjusts accuracy for GEODIST

parent cf42c48a
...@@ -767,6 +767,6 @@ void geodistCommand(client *c) { ...@@ -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);
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment