The radius parameter on GeoflutterFire library has a weird behaviour.
Centering a search on some specific location with known existing results :
setting approximately 1 km radius , there will be some results
setting approximately 1.5 km radius, there will be not results anymore
setting approximately 2km radius, there will be again some results
around and superior to 4 km, most of the first results will be at the extreme of the radius
Does someone manage to create a working case with this library? I would be surprised if this is due to limitation of geohash. I would think more of an error in this library making it pretty useless in a production app if results are not coherent
Can you advise another similar library on Flutter? `
Geoflutterfire geo = Geoflutterfire();
GeoFirePoint center =
geo.point(latitude: location.latitude, longitude: location.longitude);
Query collectionQuery =
FirebaseFirestore.instance.collectionGroup('places');
return geo
.collection(collectionRef: collectionQuery)
.within(
center: center,
radius: filter.radius!,
field: 'location',
strictMode: true)
.map((snapshots) {}`