Zip Code Script

A

Anonymous

Guest
Howdy everyone,

Been a while but have been busy. My question is, I'm looking for an idea or if someone has already done it, on a zip code script in php. All I want is for someone to enter their zip code, the radius to search and then proceed to bring up the results for that area. If anyone has a clue or a sample, I'd greatly appreciate it. And yes, I've checked Hotscripts.com (all were for a fee).
 
I actually just wrote such program this weekend. It was actually easy to do. The hard part was finding a list to use. I used the 2000 gazetter list found at http://www.census.gov./geo/www/gazetteer/gazette.html

Basically what I have it do is use the latitude and longitude of the known locations compared to that of the entered location.

each degree is aprox 70miles depending where you are on the earth so I have it set to search +2 and -2 for the lat and long which will get about a 200mile radius.

The gazetter list uses the lat and long of post offices so accuracy isn't that great but it's good enough for most applications.

I would post the code but I indend on selling it down the road.

Some help I will give is to use the Haversine Formula to calculate the distance do a search on google to find that.
 
Redcircle said:
I actually just wrote such program this weekend. It was actually easy to do. The hard part was finding a list to use. I used the 2000 gazetter list found at http://www.census.gov./geo/www/gazetteer/gazette.html

This list is great. I've looked but I can't find anything similar (for free) in the UK. Does anybody know of anything?

Thanks in advance!

Froggy
 
Back
Top