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?
zip code locator
1 reply to this topic
Posted 01 March 2006 - 10:11 PM
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.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users