public static class GeoEncodingUtils.DistancePredicate extends GeoEncodingUtils.Grid
Modifier and Type | Field and Description |
---|---|
private double |
distanceKey |
private double |
lat |
private double |
lon |
ARITY, latBase, latShift, lonBase, lonShift, maxLatDelta, maxLonDelta, relations
Modifier | Constructor and Description |
---|---|
private |
DistancePredicate(int latShift,
int lonShift,
int latBase,
int lonBase,
int maxLatDelta,
int maxLonDelta,
byte[] relations,
double lat,
double lon,
double distanceKey) |
Modifier and Type | Method and Description |
---|---|
boolean |
test(int lat,
int lon)
Check whether the given point is within a distance of another point.
|
private final double lat
private final double lon
private final double distanceKey