I'm making a mobile app with React Native and Cloud Firestore and I'm having trouble querying data from the Firestore database.
I have a collection of restaurants documents that contains address data in firestore. I want to only read few(around 15) of them which is closest to the current user location. After querying, I will display them in the list. I'm thinking of using Haversine formula to query the documents with closest location. However, I have realized that only simple comparison is possible when using simple query methods. I have no idea how to read only those few documents without having to go through all the documents. What will be the solution? Thank you for your time in advance! Note that I'm very new to Firestore and coding in general.