MWatkins84
asked on
Distance between 2 cities
Hi Experts
I have a database of cities with the Longitude and Latitude. I want a user to select a city and then see the cities within a selected proximity in Kms. Whats the best way to do this with PHP?
Thanks
I have a database of cities with the Longitude and Latitude. I want a user to select a city and then see the cities within a selected proximity in Kms. Whats the best way to do this with PHP?
Thanks
The "Haversine" formula can be used to compute the distance between two Lat/Lon pairs. I will see if I have an example for you. Best, ~Ray
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks