public final class Base32 extends Object
| Modifier and Type | Method and Description |
|---|---|
static long |
decodeBase32(String hash)
Returns the conversion of a base32 geohash to a long.
|
static String |
encodeBase32(long i)
Returns the base 32 encoding of length
GeoHash.MAX_HASH_LENGTH
from a Long geohash. |
static String |
encodeBase32(long i,
int length)
Returns the base 32 encoding of the given length from a
Long
geohash. |
public static String encodeBase32(long i, int length)
Long
geohash.i - the geohashlength - the length of the returned hashpublic static String encodeBase32(long i)
GeoHash.MAX_HASH_LENGTH
from a Long geohash.i - the geohashpublic static long decodeBase32(String hash)
hash - geohash as a stringCopyright © 2013–2017. All rights reserved.