Need suggestions on MAP + GPS

Tutorials that use the MapActivity. Many using GPS functionality.

Need suggestions on MAP + GPS

Postby pankajch82 » Thu Apr 02, 2009 12:58 pm

Hi ,
Need some suggestions/directions on how to accomplish below :

What i want to do :
I can get my current geo-location , i have stored 100 geo-locations in a db , now what i want to do is input the radius from user & get the locations on map which comes within the radius .

The db will be either located locally or it can be called via webservice .

Now i want to know what logic shall be used to get the geo-locations on Map based on Radius + current location.

Eg : My current location is Google Hq , in DB i have all the school in SFO , now i want to display those scholls that comes in 10 miles of my current location .

Posts: 2
Joined: Thu Apr 02, 2009 12:34 pm


Postby tom.farnham » Sun Apr 05, 2009 5:46 am

You need to iterate over your list of saved locations and find the distance between where you are and each point.

Find the distance using a great circle math.
Once Poster
Once Poster
Posts: 1
Joined: Sun Apr 05, 2009 5:37 am


Return to Map Tutorials

Who is online

Users browsing this forum: No registered users and 4 guests