android - How to find and retrieve nearby latitude and longitude values stored in a Firebase database? -


i developing android app users sign , store current location on firebase database. i'm looking display location of nearby users on map taking latitude , longitude of user , using through firebase database , find users live nearby (within radius).

i'm trying order latitudes , longitudes in database, store them, , somehow loop through them find ones near user's location. seems inefficient way go database can become quite big more , more users.

is there way can find out how many latitudes , longitudes fall within radius centered around user's current location?


Comments

Popular posts from this blog

Django REST Framework perform_create: You cannot call `.save()` after accessing `serializer.data` -

Why does Go error when trying to marshal this JSON? -