Android: How to get the list of users with in same geofence?

帅比萌擦擦* 提交于 2019-12-20 07:55:23

问题


I have 3 Geo-fence locations(circles) stored on Firebase like

  1. Geofence_location_1(lat,lng, radius).
  2. Geofence_location_2(lat,lng, radius).
  3. 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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!