Populate a ListView with GeoPoints near me

172 views Asked by At

I have a table at Parse.com full of addresses of places.
Every row contains the name of the address, and a GeoPoint (Latitude and Longitude).

I want to do 2 things:
1. Populate a ListView with data from my table (name and address), but places that are not further than, for example, 500 meters;
2. Convert the GeoPoint to an address (Street, City), so every ListView item will be shown like this:
Address Name
Street (with number of the house), City.

Can you please help me?

1

There are 1 answers

1
Ido Naveh On BEST ANSWER

I found an answer for my first question. I've added that code in the activity AsyncTask on the doInBackground method.
Use this guide, together with

query.whereWithinKilometers("Location", geoPoint, 1.5);