Ido Naveh Ido Naveh - 1 year ago 82
Android Question

Populate a ListView with GeoPoints near me

I have a table at full of addresses of places.

Every row contains the name of the address, and a GeoPoint (Latitude and Longitude).

I have 2 things to do:

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?

Answer Source

I find an answer for your 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);
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download