Geodesy icon indicating copy to clipboard operation
Geodesy copied to clipboard

"Neighbors" doesn't work for CLLLocationCoordinate2D

Open G-Steve-E opened this issue 5 years ago • 1 comments

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 avatar Dec 20 '19 19:12 G-Steve-E

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)

G-Steve-E avatar Dec 20 '19 19:12 G-Steve-E