geofire-objc icon indicating copy to clipboard operation
geofire-objc copied to clipboard

GeoFire Circle Query NSException

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

When using GeoFire circle query in Swift with GeoFire 3.0 cocoapod, query aborts with NSException with radius of 8000 Km (4791 MI) Xcode debugger shows latitude of 105.9793939... and longitude of -112.05707936... Radius is derived from user pan/zoom of map - i.e. user zooms out on map to display the entire world on the map. Firebase database contains locations all over the world and app is attempting to display markers. Seems like the GeoHash routine should restrict the latitude at +/- 90 and the longitude at +/- 180 and in that case all GeoFire data should be returned from the Query. GeoFire issue.pdf

G-Steve-E avatar Nov 16 '19 18:11 G-Steve-E

@G-Steve-E I'm also facing same issue

vaibhav-jhaveri-ds avatar Dec 13 '19 12:12 vaibhav-jhaveri-ds

For now I have abandoned using GeoFire. It's a shame as this seemed like a good approach for us. I'm still researching how to solve this issue and deliver good performance. If you have any suggestions, please post.

G-Steve-E avatar Dec 13 '19 15:12 G-Steve-E