Eliminates engineers near the equator & prime meridian

This commit is contained in:
Itamar Haber
2016-02-18 15:11:30 -08:00
committed by antirez
parent 0f46f9bd42
commit 4b89ea3a95

View File

@ -590,8 +590,8 @@ void georadiusGeneric(client *c, int type) {
if (withcoords) { if (withcoords) {
addReplyMultiBulkLen(c, 2); addReplyMultiBulkLen(c, 2);
addReplyDouble(c, gp->longitude); addReplyHumanLongDouble(c, gp->longitude);
addReplyDouble(c, gp->latitude); addReplyHumanLongDouble(c, gp->latitude);
} }
} }
} else { } else {
@ -731,8 +731,8 @@ void geoposCommand(client *c) {
continue; continue;
} }
addReplyMultiBulkLen(c,2); addReplyMultiBulkLen(c,2);
addReplyDouble(c,xy[0]); addReplyHumanLongDouble(c,xy[0]);
addReplyDouble(c,xy[1]); addReplyHumanLongDouble(c,xy[1]);
} }
} }
} }