Home Contact

GeoHex Gem

http://geohex.rubyforge.org/

GeoHex Ruby gem

This GeoHex Ruby gem can convert latitude/longitude to GeoHex code each others. The GeoHex is a latitude/longitude encoding system invented by sa2da. GeoHex divides geometry regions into hexagonal grid and set an unique identifier to each grid. (It supports only Japan region so far.)

Relative External Links

About Author

Activities

  • 20/Nov: GeoHex Gem 1.0.0 is released

GEOHEX DESCRIPTION

img

20 Nov 2009

INSTALL

sudo gem install geohex
If you can not install by remote , download from rubyforge.

QUICK START

require 'geohex'
GeoHex.encode(35.647401,139.716911,1)
=> '132KpuG'
GeoHex.decode('0dMV')
=> [24.338279000000004,124.1577708779443,7]