Jump to content

Zip Code distance calculation


macleodjb

Recommended Posts

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
Share on other sites

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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.