public class GeoavailabilityMap<T>
extends java.lang.Object
| Constructor and Description |
|---|
GeoavailabilityMap(java.lang.String baseGeohash,
int precision) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addPoint(Coordinates coords,
T data)
Adds a new point to this GeoavailabilityMap, and associates it with a
data point.
|
SpatialRange |
indexToSpatialRange(int index)
Retrieves the
SpatialRange represented by a grid index point. |
java.util.Map<java.lang.Integer,java.util.List<T>> |
query(GeoavailabilityQuery query)
Queries the GeoavailabilityGrid, returning the grid indices that contain
matching points, with lists of their associated data points.
|
public GeoavailabilityMap(java.lang.String baseGeohash,
int precision)
public boolean addPoint(Coordinates coords, T data)
coords - The location (coordinates in lat, lon) to add.data - Data point to associate with the location.public SpatialRange indexToSpatialRange(int index)
SpatialRange represented by a grid index point.public java.util.Map<java.lang.Integer,java.util.List<T>> query(GeoavailabilityQuery query) throws BitmapException
query - GeoavailabilityQuery to evaluateBitmapException