proxpero / Geodesy

A Swift implementation of the geohash algorithm.
MIT License
23 stars 10 forks source link

"Neighbors" doesn't work for CLLLocationCoordinate2D #11

Open G-Steve-E opened 4 years ago

G-Steve-E commented 4 years ago

When I use Geodesy as shown below: < let CurrentGeoHash = self.currentLocation.geohash(precision: 4) let CurrentNeighbors = self.currentLocation.neighbors(precision: 4) print("Geohash: ", CurrentGeoHash, " Geohash Neighbors: ", CurrentNeighbors)

I get "Value of type CLLLocationCoordinate2D has no member 'neighbors.'

G-Steve-E commented 4 years ago

I did update the extension locally and added the 'neighbors' functions to the CLLLocationCoordinate2D extension.

It successfully builds, but the returned neighbor array appears to be incorrect (see issue #12)