Example #1
0
 /**
  * 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);
Example #3
0
 private bool locationIsInQuery(GeoLocation location)
 {
     return(GeoUtils.distance(location, center) <= this.radius);
 }
 public abstract void onKeyEntered(string key, GeoLocation location);
Example #5
0
 public LocationInfo(GeoLocation location, bool inGeoQuery)
 {
     this.location   = location;
     this.inGeoQuery = inGeoQuery;
     this.geoHash    = new GeoHash(location);
 }