2425262728293031323334
hashes.add(iter.next()); } GeoHash prev = null; for (GeoHash gh : hashes) { if (prev != null) { Assert.assertTrue(prev.compareTo(gh) < 0); } Assert.assertTrue(newBox.contains(gh.getPoint())); prev = gh; }
4546474849505152535455
3031323334353637383940
while (gh != null) { assertTrue(bbox.contains(gh.getPoint())); assertFalse(hashes.contains(gh.toBase32())); hashes.add(gh.toBase32()); if (prev != null) { sumOfComp += prev.compareTo(gh); } prev = gh; if (sumOfComp == 0) { crossingZero++; }