public class GeoHash extends GeoShapeBase
EARTH_CIRCUMFERENCE, EARTH_RADIUS, MAX_LAT, MAX_LON, MIN_LAT, MIN_LON| Constructor and Description |
|---|
GeoHash(double latitude,
double longitude,
int precision) |
GeoHash(double latitude,
double longitude,
int precision,
String description) |
GeoHash(String hash) |
GeoHash(String hash,
String description) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getHash() |
int |
hashCode() |
boolean |
intersects(GeoShape geoShape)
Calculate whether the given GeoShape intersects with the geometry of this object.
|
GeoRect |
toGeoRect() |
String |
toString() |
boolean |
within(GeoShape geoShape)
Calculate whether the given GeoShape is completely within the geometry of this object.
|
distanceBetween, getDescription, validatepublic GeoHash(String hash)
public GeoHash(double latitude,
double longitude,
int precision)
public GeoHash(double latitude,
double longitude,
int precision,
String description)
public String getHash()
public GeoRect toGeoRect()
public boolean within(GeoShape geoShape)
GeoShapegeoShape - The other shapepublic boolean intersects(GeoShape geoShape)
GeoShapegeoShape - The other shapeCopyright © 2014–2018. All rights reserved.