From 9de844603c5203ae6ff6e7882a3dcb47a9f79a85 Mon Sep 17 00:00:00 2001 From: Itamar Haber Date: Thu, 18 Feb 2016 15:00:39 -0800 Subject: [PATCH] Adjusts accuracy for GEODIST --- src/geo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/geo.c b/src/geo.c index c33d1604..a0931ac0 100644 --- a/src/geo.c +++ b/src/geo.c @@ -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); }