Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hrs/geohashing
XKCD geohashing algorithm
https://github.com/hrs/geohashing
Last synced: about 1 month ago
JSON representation
XKCD geohashing algorithm
- Host: GitHub
- URL: https://github.com/hrs/geohashing
- Owner: hrs
- Created: 2012-02-28T19:50:14.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2013-07-24T21:08:45.000Z (over 11 years ago)
- Last Synced: 2024-11-30T22:17:16.494Z (about 2 months ago)
- Language: Ruby
- Homepage:
- Size: 58.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# Geohashing
A bare-bones implementation of XKCD's geohashing algorithm.
### lolwut?
[The inspirational comic](http://www.xkcd.com/426/)
[The geohashing community](http://wiki.xkcd.com/geohashing/Main_Page)
### Usage
Just include the Geohashing module in your class. The only *really* useful method is:
Geohashing::geohash(lat, long)
which returns today's geohashing location in your [graticule](http://wiki.xkcd.com/geohashing/Graticule).
E.g., on 2005-05-26,
Geohashing::geohash(37.421542, -122.085589) #=> [37.8577132, -122.544543]
### Caveat emptor
Since the module need to be able to look up the opening Dow Jones index, no network connection == no geohash.
Note also that this module currently lacks:
- a command-line tool
- the ability to find previous geohashes
- [30W time zone support](http://wiki.xkcd.com/geohashing/30W_Time_Zone_Rule)That being said, pull requests are welcome!