I needed a way to get the plain Firestore queries so that I could query them once (rather than listen). I also went this route due to issue #7 . This simply exposes the query (or queries) that the GeoQuery would listen to.
Usage:
val queries = geoFirestore.queryAtLocation(GeoPoint(latitude, longitude), radius).queries
queries.forEach {
it.get()?.addOnSuccessListener {
// Do work here
}?.addOnFailureListener { }
}
I needed a way to get the plain Firestore queries so that I could query them once (rather than listen). I also went this route due to issue #7 . This simply exposes the query (or queries) that the GeoQuery would listen to.
Usage: