public class GeoHashCircleQuery extends java.lang.Object implements GeoHashQuery, java.io.Serializable
| Constructor and Description |
|---|
GeoHashCircleQuery(WGS84Point center,
double radius)
create a
GeoHashCircleQuery with the given center point and a
radius in meters. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(GeoHash hash)
check wether a geohash is within the hashes that make up this query.
|
boolean |
contains(WGS84Point point)
returns whether a point lies within a query.
|
java.util.List<GeoHash> |
getSearchHashes()
should return the hashes that re required to perform this search.
|
java.lang.String |
getWktBox() |
java.lang.String |
toString() |
public GeoHashCircleQuery(WGS84Point center, double radius)
GeoHashCircleQuery with the given center point and a
radius in meters.public boolean contains(GeoHash hash)
GeoHashQuerycontains in interface GeoHashQuerypublic java.lang.String getWktBox()
getWktBox in interface GeoHashQuerypublic java.util.List<GeoHash> getSearchHashes()
GeoHashQuerygetSearchHashes in interface GeoHashQuerypublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean contains(WGS84Point point)
GeoHashQuerycontains in interface GeoHashQueryCopyright © 2015. All Rights Reserved.