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

QueryreF geoflutterfire #34

Open
hacen27 opened this issue Aug 15, 2023 · 0 comments
Open

QueryreF geoflutterfire #34

hacen27 opened this issue Aug 15, 2023 · 0 comments

Comments

@hacen27
Copy link

hacen27 commented Aug 15, 2023

How can I perform a geospatial query using GeoFlutterFire to find nearby locations within a certain radius from a given latitude and longitude?
Exemple 👍

var queryRef = _firestore
.collection('speedtestlocation2')
.where('IPInfo', isNotEqualTo: 'Unknown ISP')
.orderBy('IPInfo')
.orderBy('avrg',
descending:
true);

  var streams = geo.collection(collectionRef: queryRef).within(
      center: center,
      radius: 10,
      field: 'position',
      strictMode:
          true); 
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