SunQuest
           Scripts
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb Site ManagementScripts

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old October 12th, 2005, 02:50 PM
Caseyy Caseyy is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2005
Posts: 82 Caseyy User rank is Corporal (100 - 500 Reputation Level)Caseyy User rank is Corporal (100 - 500 Reputation Level)Caseyy User rank is Corporal (100 - 500 Reputation Level)Caseyy User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 19 h 55 m 41 sec
Reputation Power: 7
Lightbulb help yourself to some zip code stuff here

I'm working on a page where I used the zip code project from sourceforge to calculate distances between zips. I expanded on it to better fit my needs and I'm posting it here in case anyone searches for zip codes, they might find this useful. (I'm the one who mentioned doing this in the support section there)

The original project just had the zips, their lattitude & longitude and state abbreviation in a table and a script to calculate distances.

What I added to the table was the full state name and the city for just about every zip code(over 30,000), via a little php automation.

Now, it can be used to verfiy that a zip matches a city and state, make it easier for people to specify their location just by entering their zip and having city/state filled in automatically, or anything else along those lines. It doesn't have every single zip code in the country, but it covers enough to be very useful. Anyway, this is it.
Attached Files
File Type: zip zip_codes.zip (603.5 KB, 201 views)

Reply With Quote
  #2  
Old October 12th, 2005, 03:01 PM
Saphirix Saphirix is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2005
Posts: 70 Saphirix User rank is Private First Class (20 - 50 Reputation Level)Saphirix User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 Day 11 h 36 m 42 sec
Reputation Power: 4
Quote:
Originally Posted by Caseyy
I'm working on a page where I used the zip code project from sourceforge to calculate distances between zips. I expanded on it to better fit my needs and I'm posting it here in case anyone searches for zip codes, they might find this useful. (I'm the one who mentioned doing this in the support section there)

The original project just had the zips, their lattitude & longitude and state abbreviation in a table and a script to calculate distances.

What I added to the table was the full state name and the city for just about every zip code(over 30,000), via a little php automation.

Now, it can be used to verfiy that a zip matches a city and state, make it easier for people to specify their location just by entering their zip and having city/state filled in automatically, or anything else along those lines. It doesn't have every single zip code in the country, but it covers enough to be very useful. Anyway, this is it.


Will it always display the single/first correct City/Location, or will you have a list of locations that show within that Zip Code? Some cities have multiple Zip Codes, or some Zip Codes spread out through Multiple Cities.

Reply With Quote
  #3  
Old October 12th, 2005, 04:20 PM
Caseyy Caseyy is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2005
Posts: 82 Caseyy User rank is Corporal (100 - 500 Reputation Level)Caseyy User rank is Corporal (100 - 500 Reputation Level)Caseyy User rank is Corporal (100 - 500 Reputation Level)Caseyy User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 19 h 55 m 41 sec
Reputation Power: 7
Quote:
Originally Posted by Saphirix
Will it always display the single/first correct City/Location, or will you have a list of locations that show within that Zip Code? Some cities have multiple Zip Codes, or some Zip Codes spread out through Multiple Cities.


I didn't notice any single zip codes spanning multiple cities, but it does have the multiple zip codes in most cities. So, I guess you could search the table by city and list each zip code in it if you need to do that.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb Site ManagementScripts > help yourself to some zip code stuff here


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway