How Can Fetch Data On The Basis Of Location In Firestore?
I want to fetch shops on the basis of user location in Firestore. Firestore structure: shopCollection shopDoc1 city:'city', address:'xyz',
Solution 1:
There is no way to simply query the Firestore database and get all shops that are nearby. To solve this, you need to use a library and for that I recommend you to use GeoFirestore for Android:
GeoFirestore is an open-source library for Android that allows you to store and query a set of documents based on their geographic location.
Post a Comment for "How Can Fetch Data On The Basis Of Location In Firestore?"