public class GeoHashCircleQuery extends Object implements GeoHashQuery, 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.
|
List<GeoHash> |
getSearchHashes()
should return the hashes that re required to perform this search.
|
String |
getWktBox() |
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 String getWktBox()
getWktBox in interface GeoHashQuerypublic List<GeoHash> getSearchHashes()
GeoHashQuerygetSearchHashes in interface GeoHashQuerypublic boolean contains(WGS84Point point)
GeoHashQuerycontains in interface GeoHashQueryCopyright © 2015. All Rights Reserved.