Alan Zhong <al*********@yahoo.com> wrote:
when designing the address data entry webpage, i wonder...
is there an online map/direction webpage that allow us to check if an
address is validate? or auto-completes city names from the zip code?
The USPS offers a free service, which will auto-complete and canonicalize
domestic addresses. However, the process to get an approved account is
tedious. Here's their site:
http://www.usps.com/webtools/welcome.htm
The API is superficially `XML', but in reality the implementation seems to
just use lots of strcmp() ;) So, follow the examples _exactly_--letter by
letter, space by space.
If anybody manages to get an account and is interested, I can post some PHP
classes which handle everything quite nicely.
- Bill