问题
I have 3 Geo-fence locations(circles) stored on Firebase like
- Geofence_location_1(lat,lng, radius).
- Geofence_location_2(lat,lng, radius).
- Geofence_location_3(lat,lng, radius).
I am able to get the user's current location and store it in Firebase.
Is there a way to figure out if users current location falls with in any of the saved Geo-fence locations?
OR
Is it possible to get the key of Geo-fence in which the user is present?
OR
Is there any way to show user the list of all other users present in the same Geo-Fence in which user in.
I am not asking you to write the code for me. Just point me in the right direction and I would be grateful to you. If more details are needed please ask. I can share my code as well.
Thank you.
来源:https://stackoverflow.com/questions/59376804/android-how-to-get-the-list-of-users-with-in-same-geofence