Displaying places near the current location of the Android Device

3

First of all, I can already get my location and display a Maker, but I have a web service that provides the coordinates of a store network, in case I have to display the nearest stores, my question is if I have a list of coordinates how do I show the closest ones?

    
asked by anonymous 14.04.2014 / 02:48

2 answers

3

Try this:

Location loc;
.....
float radius = 50.0; // Raio em metros.
float distance = loc.distanceTo(loc2); // recebe distância entre os dois pontos.
if (distance < radius) then inside. // verifica se tá dentro do raio estipulado.

Response removed from this question in SO

    
14.04.2014 / 06:26
1

I'd advise you to get the Google Maps API: link

Here's another reference to creating Marker: link

    
14.04.2014 / 03:13