firebase / firebase/geofire-objc
Not a valid geo location for a huge radius
- Dominant language
- Objective-C
- Stars
- 447
- Forks
- 183
- PR merge metrics
- No merged PRs in 30d
Description
I'm making a global app that requires schools to be sorted from nearest to farthest, based on the user's location. To do this, I set geoFire.queryAtLocation(location, withRadius: 40075)
This causes a precision error (`'Precision must be less than 23!'`) which I don't understand. So I reduced the radius to 4000. This time I'm getting a `'Not a valid geo location: [100.062421,-21.955856]'` error. I hard coded the user's location to be somewhere in Iceland `CLLocation(latitude: 63.8875517, longitude: -21.9558564)`
It seems that this error shows up when the radius hits one of the poles, in this case the north pole, since I don't get the same error when I change the user's location to somewhere nearer the equator.
Contributor guide
Assessment
This issue has not been assessed yet.