473,385 Members | 1,720 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Zip Codes

Recent project came to me. We have "orders" that are entered into our
database through a data entry web-based application that we've built.
Typically, the user enters the city/state/zip code/county. Now they want it
to be able to autopopulate the city/state/county based on entering only the
Zip Code. We realize this can be a problem as Zip Codes can overlap
different counties/cities/etc. Is there a good way to handle this? Perhaps
some kind of control we can use on an ASP page that will read our Zip Code
data and handle this somehow?
Jul 22 '05 #1
2 1460
"James" <le********@verizon.net> wrote in message
news:OI**************@TK2MSFTNGP10.phx.gbl...
Recent project came to me. We have "orders" that are entered into our
database through a data entry web-based application that we've built.
Typically, the user enters the city/state/zip code/county. Now they want it to be able to autopopulate the city/state/county based on entering only the Zip Code. We realize this can be a problem as Zip Codes can overlap
different counties/cities/etc. Is there a good way to handle this? Perhaps some kind of control we can use on an ASP page that will read our Zip Code
data and handle this somehow?

The zip code database chnages thus you can't use a static database.
http://zip4.usps.com/zip4/welcome.jsp

"For integrating ZIP Code Lookup capabilities into your web site or
application system, please visit our Web Tools (APIs) or find additional
addressing products at Address Information System Products (AIS)."

The "Address Information APIs" include "City/State Lookup"w hcih may not
include County.
Jul 22 '05 #2
"James" <le********@verizon.net> wrote:
Recent project came to me. We have "orders" that are entered into our
database through a data entry web-based application that we've built.
Typically, the user enters the city/state/zip code/county. Now they want it
to be able to autopopulate the city/state/county based on entering only the
Zip Code. We realize this can be a problem as Zip Codes can overlap
different counties/cities/etc.


For mailing addresses, the overlap doesn't matter. The city name you
get from the ZIP database will be the one the USPS wants to see. But
if you intend to use this information to determine sales taxes or
something like that, you will be in trouble.

For example, I live in Fairfax County, Virginia, but my ZIP code
translates to Alexandria - and that is what we use for our mailing
address, and what the USPS wants us to use.

But we pay taxes to Fairfax County, *not* Alexandria city. If you used
our ZIP to determine taxing jurisdiction, you'd have us paying
Alexandria rates, and you'd be sending the money to Alexandria. Wrong
on both counts. And this kind of thing is commonplace, all over the
country.

Ah..I see that one of the things you want to auto populate is County.
As I've just demonstrated, you're doomed.

--
Tim Slattery
MS MVP(DTS)
Sl********@bls.gov
Jul 22 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Michael Bendzick | last post by:
Is there a simple way in python to read a keyboard scan code? I'm working on a shell script that interfaces with a proprietary keyboard device (extra buttons) and need to be able to distinguish...
1
by: Yong Wang | last post by:
Hi, All: We have a network management system written in C++, MysQL, and Hp SNMP. It works in Solaris command line. When I wrote a similar python codes which call compiled C++ and mysql codes in...
29
by: Maurice LING | last post by:
Hi, I remembered reading a MSc thesis about compiling Perl to Java bytecodes (as in java class files). At least, it seems that someone had compiled scheme to java class files quite successfully....
8
by: Shane Groff | last post by:
I know this is a recurring discussion (I've spent the last 3 days reading through threads on the topic), but I feel compelled to start it up again. After reading through the existing threads, I...
6
by: Josh Mcfarlane | last post by:
I keep trying to get myself out of the return-code mindset, but it doesn't seem to work. They are suppose to get rid of if-then statements of return codes, but you still have to do an if statement...
3
by: aman | last post by:
i know how to get scan codes and ascii codes for special keys. i can get ascii codes of alphabetic keys. how does one get scan codes of alphabetic keys??
18
by: Steve Litvack | last post by:
Hello, I have built an XMLDocument object instance and I get the following string when I examine the InnerXml property: <?xml version=\"1.0\"?><ROOT><UserData UserID=\"2282\"><Tag1...
3
by: c# beginner | last post by:
we are trying to standardize return codes across our .NET applications (that are soon to be developed.) What is the best practice for standardizing return codes? I know of only the following...
3
by: PerlPhi | last post by:
hi! i have a Perl code in here that when ran the program accepts any Perl codes from the user input (<STDIN>, of course use no syntax errors), then after breaking the multiline input, the inputs will...
5
by: =?GB2312?B?17/HvyBaaHVvLCBRaWFuZw==?= | last post by:
Hi, I would like to have someone comments on what's the best practice defining error codes in C. Here's what I think: solution A: using enum pros: type safe. better for debug (some debugger...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.