Package ch.hsr.geohash

Examples of ch.hsr.geohash.BoundingBox.intersects()


  private void expandSearch(GeoHash centerHash, BoundingBox bbox) {
    addSearchHash(centerHash);

    for (GeoHash adjacent : centerHash.getAdjacent()) {
      BoundingBox adjacentBox = adjacent.getBoundingBox();
      if (adjacentBox.intersects(bbox) && !searchHashes.contains(adjacent)) {
        addSearchHash(adjacent);
      }
    }
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.