Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4362: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4364: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4365: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4366: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
anddev.org • View topic - Need suggestions on MAP + GPS

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 .

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

Top

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.
tom.farnham
Once Poster
Once Poster
 
Posts: 1
Joined: Sun Apr 05, 2009 5:37 am

Top

Return to Map Tutorials

Who is online

Users browsing this forum: No registered users and 1 guest