Closed markharwood closed 14 years ago
I added code to get all the 8 neighbours of a hash.
Great stuff. Thanks for this and the geohash.org compatibility fix!
I mark this as fixed, as the getAdjacent() method allows you to get all 8 neighbouring hashes. One could argue, that the methods to get a single one should public, i.e. getNorthenNeighbour()
I also added code that ensures that Hashes acquired using the neighbouring-methods have their bounding box values set up properly.
Would be useful to make "getNorthern/Southern..." methods public BUT unlike other forms of object construction GeoHash neighbour objects aren't initialized with boundingBox pre-calculated so get null for calls to getBoundingBoxPoints()