summaryrefslogtreecommitdiff
path: root/src/geo.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/geo.c')
-rw-r--r--src/geo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/geo.c b/src/geo.c
index caa9e1863..855d60644 100644
--- a/src/geo.c
+++ b/src/geo.c
@@ -767,6 +767,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);
}