geohash.js

1.0.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i geohash.js

Weekly Downloads

2

Version

1.0.0

License

MIT

Last publish

Collaborators

  • yanagieiichi