Jump to content


zip code locator

  • Please log in to reply
1 reply to this topic

#1 megashell

  • New Members
  • Pip
  • Newbie
  • 6 posts

Posted 01 March 2006 - 10:02 PM

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?


#2 Kris

  • Staff Alumni
  • Advanced Member
  • 2,755 posts
  • LocationThe Internet

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