Steve Sperber
asked on
How can i get to know my nearest neighbors added on Google map using PHP ?
I have a social networking web site (www.almpt.com) with a google map page that shows people added to the map.
I want to search for all neighbors close to me within say 1, 5, 10, 15 mile region.
How can i get to know my nearest neighbors added on this map using PHP ?
I want to search for all neighbors close to me within say 1, 5, 10, 15 mile region.
How can i get to know my nearest neighbors added on this map using PHP ?
Have you tried knocking on there door ? .... sorry I couldn't resist that. Listen to Ray, he knows what he's talking about.
@elvin66: ;-)
ASKER
Using the code I get the attached output.I think the code takes one set of input for the source and destination and that is why it is showing "0" distance.
can you pl highlight in the code comment where it will establish database connections (or put in seperate file) and get the data from all the locations order by(or group by) distance.
Somehow the piece of code which gets data from DB and comparison of distance is not clear to me.
can you pl highlight in the code comment where it will establish database connections (or put in seperate file) and get the data from all the locations order by(or group by) distance.
Somehow the piece of code which gets data from DB and comparison of distance is not clear to me.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
https://www.experts-exchange.com/help/viewHelpPage.jsp?helpPageID=26
What was wrong with this answer? The question has been open for several weeks without comment, and suddenly there is a marked-down grade. Please explain what you were expecting that you did not get, thanks.
What was wrong with this answer? The question has been open for several weeks without comment, and suddenly there is a marked-down grade. Please explain what you were expecting that you did not get, thanks.
https://www.experts-exchange.com/Web_Development/Web_Languages-Standards/PHP/A_4276-What-is-near-me-Proximity-calculations-using-PHP-and-MySQL.html
Open in new window