0

I have collection called 'Announces' every document in this collection has (longitude and latitude) my question is how I can query the data nearest to the user location ?

Firebase

the user can add a a distance such "50km" so I can fetch the data in this radius ??

enter image description here

Frank van Puffelen
  • 499,950
  • 69
  • 739
  • 734
  • Firestore does not natively support so-called geoqueries, but you can build them yourself. See https://firebase.google.com/docs/firestore/solutions/geoqueries, https://stackoverflow.com/q/46630507 and more from https://stackoverflow.com/search?q=%5Bgoogle-cloud-firestore%5D+query+nearby+%5Bflutter%5D – Frank van Puffelen Oct 31 '21 at 14:38

0 Answers0