diff options
author | Itamar Haber <itamar@redislabs.com> | 2016-02-18 15:11:30 -0800 |
---|---|---|
committer | Itamar Haber <itamar@redislabs.com> | 2016-02-18 15:11:30 -0800 |
commit | b5149f08684b55a11b158e12770d35d78d44b2f4 (patch) | |
tree | 7680f6dbd565468fd5146ff9e4a0090d8949328e /src | |
parent | 41030ae2dee2d88451cb0bfe6b6a1b72ea0d84eb (diff) | |
download | redis-b5149f08684b55a11b158e12770d35d78d44b2f4.tar.gz |
Eliminates engineers near the equator & prime meridian
Diffstat (limited to 'src')
-rw-r--r-- | src/geo.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -588,8 +588,8 @@ void georadiusGeneric(client *c, int type) { if (withcoords) { addReplyMultiBulkLen(c, 2); - addReplyDouble(c, gp->longitude); - addReplyDouble(c, gp->latitude); + addReplyHumanLongDouble(c, gp->longitude); + addReplyHumanLongDouble(c, gp->latitude); } } } else { @@ -726,8 +726,8 @@ void geoposCommand(client *c) { continue; } addReplyMultiBulkLen(c,2); - addReplyDouble(c,xy[0]); - addReplyDouble(c,xy[1]); + addReplyHumanLongDouble(c,xy[0]); + addReplyHumanLongDouble(c,xy[1]); } } } |