Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Centered on same set of data locations, Query result succeeds or fails depending of the radius #188

Open
davemg3 opened this issue May 27, 2022 · 0 comments

Comments

@davemg3
Copy link

davemg3 commented May 27, 2022

Hello,

The radius parameter has a weird behaviour.

Centering my search on some specific location with known results :
setting approximately 1 km radius , there will be some results
setting approximately 1.5 km radius, there will be not results
setting approximately 2km radius, there will be again some results
around and superior to 4 km, most of the 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 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) {}`

Seems to be similar to :
#71

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant