/** * Returns a new Query object centered at the given location and with the given radius. * * @param center The center of the query * @param radius The radius of the query, in kilometers * @return The new GeoQuery object */ public GeoQuery queryAtLocation(GeoLocation center, double radius) { return(new GeoQuery(this, center, radius)); }
public abstract void onKeyMoved(string key, GeoLocation location);
private bool locationIsInQuery(GeoLocation location) { return(GeoUtils.distance(location, center) <= this.radius); }
public abstract void onKeyEntered(string key, GeoLocation location);
public LocationInfo(GeoLocation location, bool inGeoQuery) { this.location = location; this.inGeoQuery = inGeoQuery; this.geoHash = new GeoHash(location); }