macleodjb Posted January 11, 2008 Share Posted January 11, 2008 Hi guys, I'm trying to create a search box where the user can enter a zip code and retrieve results from whatever they select like 10 miles, 15 miles, 25 miles away from there zip code. I am at a total loss at how to do this. Does anyone have any ideas? I'm looking for something similar to whitepages [dot] com, where you can search for places around your zip code. Any help would be greatly appreciated. Thanks in advance. Link to comment https://forums.phpfreaks.com/topic/85465-zip-code-distance-calculation/ Share on other sites More sharing options...
Adam Posted January 11, 2008 Share Posted January 11, 2008 Well you'd need a large database containing all of the zip codes for reference as a start. Then perhaps working with longitude/latitude to work out the distance from something? I'm not too sure, it's something I've only ever briefly looked into. You can pay a subscription price for a regularly updated zip code database or you can just buy one but I very much doubt you'll get it updated. I found this easily on google: http://www.zipcodeworld.com/ Adam Link to comment https://forums.phpfreaks.com/topic/85465-zip-code-distance-calculation/#findComment-436399 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.