Hello,
This might be a simple question but I'm having a hard time trying to figure out how to do this.
I'm developing an iOS app which transmits user's last known location periodically. My Firebase setup looks like this.

It has a users collection. Each user has the aforementioned last location coordinate.
What I'm trying to do now is, given a location and a radius, fetch the set of users who fall within that radius.
I know I can initiate a query like this.
let circleQuery = geoFirestore.query(withCenter: center, radius: 10)
But not sure what to do after that. How do I get the results from this query?
Hello,
This might be a simple question but I'm having a hard time trying to figure out how to do this.
I'm developing an iOS app which transmits user's last known location periodically. My Firebase setup looks like this.
It has a
userscollection. Each user has the aforementioned last location coordinate.What I'm trying to do now is, given a location and a radius, fetch the set of users who fall within that radius.
I know I can initiate a query like this.
But not sure what to do after that. How do I get the results from this query?