Commit 9de84460 authored by Itamar Haber's avatar Itamar Haber Committed by antirez
Browse files

Adjusts accuracy for GEODIST

parent 79e553a5
...@@ -772,6 +772,6 @@ void geodistCommand(client *c) { ...@@ -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);
} }
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