megashell Posted March 1, 2006 Share Posted March 1, 2006 Many websites I have something like a store locator where you enter a zipcode and it gives nearby stores up to 20 or 30 miles from your zip code. How would I go about making something like this?Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/3867-zip-code-locator/ Share on other sites More sharing options...
zq29 Posted March 1, 2006 Share Posted March 1, 2006 First of all you'll need a database of all of your zip codes and their latitude and longitudes. Then there is a massive and complicated mathematical function to work out the distance of which I currently don't have close to me, but a search on Google should find it for you. Quote Link to comment https://forums.phpfreaks.com/topic/3867-zip-code-locator/#findComment-13417 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.