Class GeoHashUtils
- java.lang.Object
-
- org.apache.lucene.spatial.geohash.GeoHashUtils
-
@Deprecated public class GeoHashUtils extends Object
Deprecated.Utilities for encoding and decoding geohashes. Based on http://en.wikipedia.org/wiki/Geohash.
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static double[]
decode(String geohash)
Deprecated.Decodes the given geohash into a latitude and longitudestatic String
encode(double latitude, double longitude)
Deprecated.Encodes the given latitude and longitude into a geohash
-
-
-
Method Detail
-
encode
public static String encode(double latitude, double longitude)
Deprecated.Encodes the given latitude and longitude into a geohash- Parameters:
latitude
- Latitude to encodelongitude
- Longitude to encode- Returns:
- Geohash encoding of the longitude and latitude
-
decode
public static double[] decode(String geohash)
Deprecated.Decodes the given geohash into a latitude and longitude- Parameters:
geohash
- Geohash to deocde- Returns:
- Array with the latitude at index 0, and longitude at index 1
-
-