kungfoo / geohash-java

Implementation of GeoHashes in java. We try to be/stay compliant to the spec, as far as possible.
Other
981 stars 310 forks source link

How to get Hash String with GeoHash #26

Closed KunamiPT closed 7 years ago

KunamiPT commented 7 years ago

After I get GeoHash[], I need to get Hash String ex: "ez6". How can I convert GeoHash to Hash? It's like the reverse of an already function called "fromGeohashString".

KunamiPT commented 7 years ago

Forget it, I was using "withBitPrecision(lat, lng, 3)" instead of "withCharacterPrecision(lat, lng, 3)". So "toBase32" was not working.