Exemple #1
0
 // static
 bool BtreeLocation::hasPrefix(const BSONObj& key, const GeoHash& hash) {
     BSONElement e = key.firstElement();
     if (e.eoo()) { return false; }
     return GeoHash(e).hasPrefix(hash);
 }
Exemple #2
0
 void R2RegionCoverer::getInitialCandidates() {
     // Add the full plane
     // TODO a better initialization.
     addCandidate(newCandidate(GeoHash()));
 }