org.apache.lucene.spatial.geohash
Class GeoHashUtils

java.lang.Object
  extended by org.apache.lucene.spatial.geohash.GeoHashUtils

public class GeoHashUtils
extends Object

Based on http://en.wikipedia.org/wiki/Geohash

NOTE: This API is still in flux and might change in incompatible ways in the next release.


Constructor Summary
GeoHashUtils()
           
 
Method Summary
static double[] decode_exactly(String geohash)
           
static double[] decode(String geohash)
           
static String encode(double latitude, double longitude)
           
static void main(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeoHashUtils

public GeoHashUtils()
Method Detail

main

public static void main(String[] args)

encode

public static String encode(double latitude,
                            double longitude)

decode

public static double[] decode(String geohash)

decode_exactly

public static double[] decode_exactly(String geohash)


Copyright © 2000-2010 Apache Software Foundation. All Rights Reserved.