kungfoo / geohash-java

Implementation of GeoHashes in java. We try to be/stay compliant to the spec, as far as possible.
Other
982 stars 310 forks source link

Added more Geohash methods for iteration and a class to sample points within a bounding box #8

Closed ktcorby closed 13 years ago

ktcorby commented 13 years ago

Again, if any of this seems like its not generally useful to others I can just keep it in my code. But feel free to pull if you want. Unfortunately we had more indentation conflicts but I think most of the code in my most recent commit matches your style.

New methods are: GeoHash#next(int steps) GeoHash#prev() static GeoHash#stepsBetween(one, two)

New class is BoundingBoxSampler. Also TwoGeoHashBoundingBox was added but it doesn't contain much logic, just contains the common creation code for BoundingBoxSampler and BoundingBoxGeoHashIterator.

ktcorby commented 13 years ago

Also added ord() and fromOrd() methods to Geohash

kungfoo commented 13 years ago

I pulled and merged your changes! Thanks!