mo Posted February 4, 2009 Share Posted February 4, 2009 Sorry if I posted this in the wrong section. I have been searching for a PHP script that can calculate the distance between to addresses. I have only been able to find scripts that calculate the distance between to zip codes. Can anyone point me in the direction of a script that can fulfill my requirements? Link to comment https://forums.phpfreaks.com/topic/143758-searching-for-php-script-for-distance-calc/ Share on other sites More sharing options...
printf Posted February 4, 2009 Share Posted February 4, 2009 a zip code is no different than address. All locations either they be zip / postal codes or addresses used in mapping are mapped by a set of starting & ending latitude / longitude and the latitude / longitude boundaries poi => (roads boundaries) that define the rules relating to the navigation. If you don't understand how to formulate such an application, yahoo, google, msn and other services provide API(s) to do this remotely. Yahoo API is by far the best when using PHP because Rasmus Lerdorf the original PHP developer and yahoo's lead Infrastructure Architect has made sure the Yahoo API works seamlessly with PHP. Link to comment https://forums.phpfreaks.com/topic/143758-searching-for-php-script-for-distance-calc/#findComment-754265 Share on other sites More sharing options...
mo Posted February 4, 2009 Author Share Posted February 4, 2009 Zip mapping is differen from address mapping. I have a delivery service that only operates within one city (one zip code) and I need to determine the miles between my location and the customer's address. The zip will always be the same for both the starting and ending point. Thanks for the reply. Link to comment https://forums.phpfreaks.com/topic/143758-searching-for-php-script-for-distance-calc/#findComment-754279 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.