I'm trying to filter a collection of posts, which have a location field where the geolocation is stored as a latlng value. The goal is to only retrieve those which are within a certain distance (say 50km) of a given point, also a latlng value. I resorted to using a custom action, but haven't been able to even run the action due to errors. If there's a way that doesn't involve custom actions, that would be preferable.
Filtering Firestore Documents by Distance Using Latlng Field
Database & APIs
Yes
3 replies