Need some mojo, a Zip to Zone chart

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   Need some mojo, a Zip to Zone chart
BeerGuy
CZ Newbie
BeerGuy has been a member for over 19 year's 19 Year Member
usa.gif ohio.gif
Occupation: Small Business owner
Age: 61
Gender: Male
Website:
Status: Offline
Joined: Mar 28, 2005
0.00 posts per day
Posts: 7
Points: 206
   
This is a zip/zone chart for zip code 44657
it consists of zip, zone pairs.
All we are concerned with is the first 3 digits of the
zip code. That matches up with the zone which follows it.
eg: zip 005 is in zone 4, zip 006 is in zone 7, etc.
Notice that some zips are missing, that's because they
are in the same zone as the zip before it.
eg: zip 216, 217,218, 219....thru...232 are all in zone 3.
equal to or greater than 216 but less than 233 = zone 3.
I just need a little script that will ask the user to
enter their zip code and then parse it to the first 3
digits and then go through the chart below and return a
zone that will be assigned a variable.
Did I explain this all ok?


005, 4, 006, 7, 010, 4, 044, 5, 045, 4,
046, 5, 048, 4, 049, 5, 050, 4, 130, 3,
133, 4, 137, 3, 147, 2, 148, 3, 150, 1,
155, 2, 160, 1, 163, 2, 169, 3, 180, 4,
182, 3, 183, 4, 184, 3, 189, 4, 195, 3,
215, 2, 216, 3, 233, 4, 238, 3, 260, 1,
261, 2, 268, 3, 270, 4, 315, 5, 318, 4,
320, 5, 340, 6, 341, 5, 350, 4, 354, 5,
355, 4, 360, 5, 362, 4, 363, 5, 370, 4,
376, 3, 377, 4, 387, 5, 388, 4, 389, 5,
399, 4, 400, 3, 420, 4, 425, 3, 430, 2,
439, 1, 448, 2, 450, 3, 456, 2, 459, 3,
463, 4, 465, 3, 475, 4, 479, 3, 480, 2,
484, 3, 497, 4, 500, 5, 504, 4, 505, 5,
506, 4, 508, 5, 526, 4, 540, 5, 541, 4,
548, 5, 549, 4, 550, 5, 559, 4, 560, 5,
577, 6, 580, 5, 585, 6, 590, 7, 592, 6,
594, 7, 600, 4, 640, 5, 650, 4, 654, 5,
677, 6, 680, 5, 690, 6, 692, 5, 693, 6,
700, 5, 723, 4, 734, 5, 738, 6, 740, 5,
760, 6, 798, 7, 800, 6, 813, 7, 816, 6,
821, 7, 822, 6, 829, 7, 835, 8, 836, 7,
838, 8, 840, 7, 864, 8, 865, 7, 877, 6,
878, 7, 881, 6, 883, 7, 884, 6, 885, 7,
889, 8, 893, 7, 894, 8, 898, 7, 900, 8,



Back to top Reply with quote
#2   re: Need some mojo, a Zip to Zone chart
BeerGuy
CZ Newbie
BeerGuy has been a member for over 19 year's 19 Year Member
usa.gif ohio.gif
Occupation: Small Business owner
Age: 61
Gender: Male
Website:
Status: Offline
Joined: Mar 28, 2005
0.00 posts per day
Posts: 7
Points: 206
   
With some thourough searching I figured it out. icon_biggrin.gif
I have attached a zip file that shows how I did it in case someone wants to do it for their own zip code.



Attached Files
ZipZoneShipping.zip (5.27 KB, Downloaded: 5232 Time(s))



_________________
Beer is proof that God loves us and wants us to be happy. - Ben Franklin
Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum