Re:Plenty Of Zip Codes For Form Auto-Completion
by ComputerGuru on Tuesday December 04, 2012 @08:08AM
(#4870694)
Looks good. Just like ziptastic and all the others, but with international support. That's a real advantage.
I've always wanted to use such a library for my checkout forms and whatnot, but unfortunately it doesn't fit the typical UI paradigm.
If you need the address info, you'll (almost) never ask for the zip code before the city and state, so the information has already been filled in before the user gets that far... and the country comes last.
Users are used to entering the address info in that natural order: street, city, state, zip, country (usually pre-set to your biggest userbase). I think the cognitive overhead of mixing that order up actually exceeds the effort of having them fill in all 3 fields.
The only place I could see you using something like this is if your are tailoring your services to a US-only userbase (so you can guarantee that a zip code is there and that the other info will not need to be manually entered). For example, we use ziptastic (at the server side for cross-domain reasons) at http://gastomorrow.com/ which is a US-only service to guess the price of gas tomorrow in your area.
Re:Plenty Of Zip Codes For Form Auto-Completion
by fnordfnordfnord on Tuesday December 04, 2012 @09:31AM
(#4871036)
At least one user, me, is tired of your "typical UI paradigm" and tired of entering redundant information.
1. Ask for country (if not known) allow user to override if it was automatically detected.
2. Ask for zip, or other country specific postal code.
3. Look up zip. Fill form in with details.
Re:Plenty Of Zip Codes For Form Auto-Completion
by andrewaylett on Tuesday December 04, 2012 @02:35PM
(#4872804)
Many UK sites will start by asking for a postcode, which then lets them offer a drop-down of usually less than a dozen properties to fill in the rest of the address, guaranteed to be in standardised form.
The databases aren't always as complete as the developers believe them to be though -- sensible operators will leave a way to override the lookup, others lose out on custom from people living in new estates.
Re:Plenty Of Zip Codes For Form Auto-Completion
by manuelflara on Tuesday December 04, 2012 @09:05AM
(#4870928)
I find this very interesting, just being now into internationalizing a site of my own which requires specially this. One question for UK residents: is lack of "out codes" a problem?
Also, to the author(s) of zippopotam.us, if they're reading:
- How can we trust you're not going away any time soon? I don't see any pricing, so I assume this is all free?
- Related to the first point, I assume you don't want to be used by any high traffic site, since you probably don't have a lot of server power behind this. What's the plan?
2. You can use a third party system, either over the web, or choose a solution you can host internally. Depending on the type of system you buy you pay by the lookup or by the user (mostly internally hosted systems).
Re:Plenty Of Zip Codes For Form Auto-Completion
by michaelt on Tuesday December 04, 2012 @09:50AM
(#4871117)
You can get postcode/easting/northing for free using Ordnance Survey's Code-Point Open product [1]. That'll let you check a postcode exists, but it doesn't help with address auto-completion, as it doesn't give you a street name.
Re:Plenty Of Zip Codes For Form Auto-Completion
by samirahmed on Tuesday December 04, 2012 @10:04AM
(#4871177)
> "How can we trust you're not going away any time soon?"
We are hosted on DotCloud(YCS10) - and thanks to generous agreement with them, we have a very large free plan and until we have issues managing demand, we don't plan to ask for donations.
Several well known sites us zippopotam.us such as TheNounProject and Pocket.
There are several alternatives to us and if don't trust us, don't use us - our intention is to serve sites that can't be bothered to download dbs and serve the codes themselves.
Re:Plenty Of Zip Codes For Form Auto-Completion
by rplnt on Tuesday December 04, 2012 @11:18AM
(#4871595)
For Slovakia, the db doesn't seem to be complete. When I was looking for some source, I've found one one that has almost the same number of rows and also misses the ones I tried to find. There was also packed a db that is more complete and it might be a great idea to process and use that one. Both can be found here: http://www.posta.sk/subory/322/psc-obci-a-ulic.zip (zip contains 2 xml files)
Re:Plenty Of Zip Codes For Form Auto-Completion
by lvh on Tuesday December 04, 2012 @08:30AM
(#4870782)
I currently use Geonames to map ZIP codes to locality names, and find nearby ZIP codes/localities given a ZIP code. Can you explain why your service is preferable for me?
Re:Plenty Of Zip Codes For Form Auto-Completion
by samirahmed on Tuesday December 04, 2012 @10:06AM
(#4871191)
Not every website wants to go through the effort of collecting zip codes. We used geonames as our primary seed and its a great source but it isn't free.
Re:Plenty Of Zip Codes For Form Auto-Completion
by fnordfnordfnord on Tuesday December 04, 2012 @08:57AM
(#4870892)
Thank you to whomever did this. I'm always annoyed by any form that wants my zip and city and state. Why? Once you have the zip, then you have the city and state.
Re:Plenty Of Zip Codes For Form Auto-Completion
by svachalek on Tuesday December 04, 2012 @02:02PM
(#4872628)
The Cupertino zip code (95014) also brings up Monta Vista and Permanente, but I've never seen these two "cities" on a map nor met anyone who claims to be from there. I don't know if this is some artifact in the USPS database or they know something I don't.
However, please note that some information may be outdated. The US Postal Service now maintains the zip code data sources, but I'm not sure if you must pay for it.
Re:Plenty Of Zip Codes For Form Auto-Completion
by advisedwang on Tuesday December 04, 2012 @01:41PM
(#4872483)
UK post codes are two part, something like A1 1AA. A1 identifies a geographic area, 1AA identifies a set of postal address in that area (its designed so each post code gets roughly the same amount of mail, so big organisations have an address to themselves).
Zippopotam.us only seems to deal with the first part, which is only of marginal utility.
Love,
People-in-Ireland-tired-of-typing-fake-postal-codes
I've always wanted to use such a library for my checkout forms and whatnot, but unfortunately it doesn't fit the typical UI paradigm.
If you need the address info, you'll (almost) never ask for the zip code before the city and state, so the information has already been filled in before the user gets that far... and the country comes last.
Users are used to entering the address info in that natural order: street, city, state, zip, country (usually pre-set to your biggest userbase). I think the cognitive overhead of mixing that order up actually exceeds the effort of having them fill in all 3 fields.
The only place I could see you using something like this is if your are tailoring your services to a US-only userbase (so you can guarantee that a zip code is there and that the other info will not need to be manually entered). For example, we use ziptastic (at the server side for cross-domain reasons) at http://gastomorrow.com/ which is a US-only service to guess the price of gas tomorrow in your area.
The databases aren't always as complete as the developers believe them to be though -- sensible operators will leave a way to override the lookup, others lose out on custom from people living in new estates.
Also, to the author(s) of zippopotam.us, if they're reading: - How can we trust you're not going away any time soon? I don't see any pricing, so I assume this is all free? - Related to the first point, I assume you don't want to be used by any high traffic site, since you probably don't have a lot of server power behind this. What's the plan?
Address lookup or just validation?
For validation, there's an official regex (archived, but still useful) http://www.cabinetoffice.gov.uk/govtalk/schemasstandards/e-g....
For address lookup there are a couple of ways to go about it.
1. You can buy the rights to the Royal Mail's database. You get to parse the sucker yourself. http://www.poweredbypaf.com/end-user/products/paf-raw-data/
2. You can use a third party system, either over the web, or choose a solution you can host internally. Depending on the type of system you buy you pay by the lookup or by the user (mostly internally hosted systems).
[1] http://www.ordnancesurvey.co.uk/oswebsite/products/code-poin...
We are hosted on DotCloud(YCS10) - and thanks to generous agreement with them, we have a very large free plan and until we have issues managing demand, we don't plan to ask for donations.
Several well known sites us zippopotam.us such as TheNounProject and Pocket.
There are several alternatives to us and if don't trust us, don't use us - our intention is to serve sites that can't be bothered to download dbs and serve the codes themselves.
For example: https://tools.usps.com/go/ZipLookupResultsAction!input.actio...
http://www.census.gov/geo/www/tiger/zip1999.html
However, please note that some information may be outdated. The US Postal Service now maintains the zip code data sources, but I'm not sure if you must pay for it.
Zippopotam.us only seems to deal with the first part, which is only of marginal utility.
Any reason there isn't JSONP support?