How to get markers close to the user’s location?

Asked

Viewed 534 times

0

Good night

Anyone who knows the Tinder app knows that a map is not shown, but knows that it takes the user’s location and uses it to look for people who are close in a certain radius. I would like to do the same thing on my Android app, I searched for old posts on Stackoverflow and the internet about it but found no answers.

EDIT

In Google Maps Android API or Google Maps documentation there is some native feature as there is in Google Maps API for Javascript or the developer will have to perform a select and calculation for the solution?

Thank you in advance.

  • on Tinder fnciona thus, it takes its location and keeps calling a service sending its location, and on the server it looks for the points (people) next to its location and shows you, all this work is on the server. okay? :)

  • That, but wanted a code as an example from the Google Maps Android API. Thank you for the comment.

  • 1

    in Tinder I believe that not his uses the map, he finds the points close by a calculation and a select in the same bank.

  • The goal of the OS is to ask questions and also to propose concrete solutions. In case what you have to show us, have you tried to do something? As your question is, it may seem that you want the code ready.

  • I tried looking for examples on the Internet, but nothing concrete. I will edit the question on the basis of the documentation, if there is any feature in the API itself that deals with this issue. Thank you.

1 answer

1


I’m studying the same problem at the moment and found this paper:

Finding Points Within a Distance of a Latitude/Longitude Using Bounding Coordinates - By Jan Philip Matuschek

It addresses the problem of finding geographical points that are at a certain distance (radius) from a given geographical point.

Already has a Java implementation that is a hand on the wheel, but it is no trivial problem and requires a little math.

  • Thanks Tulio, interesting that there is still some native feature of Android that treats this.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.