Skip to content

YanagiEiichi/geohash.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

geohash.js

"geohash" <=> [lat,lng]

Install

npm install geohash.js

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

About

"geohash" <=> [lat,lng]

Resources

License

Stars

Watchers

Forks

Packages

No packages published