Overview

HTTPS SSH

Geohash12


What

Geohash12 is a library for encoding/decoding Geohash in some languages: Java (for Android), Ruby.

The library name means it supports geohashes with 12 digits length.

We sincerely thank Mr. Gustavo Niemeyer for his work of geohash.

License

Gustavo Niemeyer generously released his work to public domain.

However, we chose Free Public License 1.0.0. But it's a very good license, isn't it :-)

Usage

Android

  1. Main build.gradle

    allprojects {
        repositories {
            ...
            maven { url 'https://haibison.bitbucket.io/maven-repos' }
        }
    }
    
  2. app/build.gradle (or similar)

    dependencies {
        ...
        compile 'haibison.android:geohash12:x.x.x'
    }
    

    Where x.x.x is stable release version number.

API documentation: https://haibison.bitbucket.io/apidocs/geohash12

Ruby

Install the gem:

gem install geohash12

And:

require 'geohash12'

puts Geohash12.decode(Geohash12.encode 1.99, -2.99)