Skip to content

Commit

Permalink
lat/long
Browse files Browse the repository at this point in the history
  • Loading branch information
irr committed Oct 20, 2015
1 parent cc6f58e commit 82611fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions redis/test-geohash.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ int main() {
http://geohash.org/6gycct0ntw0
*/

// double xy[2] = { latitude, longitude };
// double xy[2] = { longitude, latitude };
double xy[2] = { -46.691657, -23.570018 };

GeoHashRange r[2];
Expand Down Expand Up @@ -68,7 +68,7 @@ int main() {
double res[2];
geohashDecodeToLongLatWGS84(h, res);

printf("latitude: %.4f and longitude: %.4f [%s] = %ld\n", res[0], res[1], buf, bits);
printf("longitude: %.4f and latitude: %.4f [%s] = %ld\n", res[0], res[1], buf, bits);

printf("decoded->uint_64t [%s] = %ld\n", buf, decode(buf));

Expand Down

0 comments on commit 82611fd

Please sign in to comment.