Skip to content

Latest commit

 

History

History
16 lines (11 loc) · 533 Bytes

README.md

File metadata and controls

16 lines (11 loc) · 533 Bytes

Android-Geohash

An implementation of Geohashes in Android. The produced hashes, when using character precision (multiples of 5 bits) are compatible to the reference implementation geohash.org.

Example

  Location location = new Location("geohash");
  location.setLatitude(53.2030476);
  location.setLongitude(45.0324948);
  
  GeoHash hash = GeoHash.fromLocation(location, 9);
  hash.toString(); //"v12n8trdj"