Skip to content
"geohash" <=> [lat,lng]
JavaScript
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
LICENSE.md
README.md
bower.json
geohash.js

README.md

geohash.js

"geohash" <=> [lat,lng]

Usage

 var lat = 39.90882;
 var lng = 116.39750;

 var hash = Geohash.encode(lat, lng); // wx4g09njdr6

 var result = Geohash.decode(hash);

 result[0] === lat; // true
 result[1] === lng; // true
Something went wrong with that request. Please try again.