12 ms·
Falsehoods programmers believe about addresses
- je42 12y agoawesome! nice list.
- mahouse 12y agoI thought this was going to be about memory addresses. :)
- je42 12y agorepeat: https://news.ycombinator.com/item?id=5791489 https://news.ycombinator.com/item?id=5791489 ?
- babo 12y agoIt still as worth to read as it was 598 days ago. :-)
- FooBarWidget 12y agoI read this article a long time ago and I took it seriously. So instead of asking for address, postal/zip code, city, state/province, I just put up a big text area labeled "Full address" so that people have complete freedom about what to fill in. 80% of the users ended up only filling in their street address, not their postal/zip code, city and state/province, even though they're from countries where (most?) addresses satisfy that format. We ended up reverting to the previous form where we explicitly asked for postal/zip code etc.
- oneeyedpigeon 12y agoDid you need it for delivery of something? Was that made very clear to the user? I can't believe so many people, wanting to receive something through the post, would wilfully screw up their address - maybe there's more to your use-case than meets the eye?
- FooBarWidget 12y agoIt was a form for signing an agreement. If they don't fill in their full address then the contract may not be legally binding.
- oneeyedpigeon 12y agoI cannot imagine how such a law, dealing with international addresses and all the issues identified in the article could ever be practically applied, but I guess YANAL.
- UrMomReadsHN 12y agoSimple clerical errors rarely invalidate a contract. I'm not a lawyer though so I don't actually know. I would have done address line 1, address line 2, line3, etc. I think people got confused by your form because they are used to typing in 1234 Sample Street <tab> expecting to be asked the rest of the information further down. The other option would be on form submit to show what they have put in and say "make sure this is your full address [CONTINUE] [EDIT ADDRESS]."
- arethuza 12y agoDon't know about the US, but here in the UK having an incorrect address in a contract may make it trickier to enforce a court decision against a company as certain kinds of documents used in the court process are only valid if served to the Registered Office of the company.
- UrMomReadsHN 12y ago
- oneeyedpigeon 12y agoOf course, they're falsehoods that everyone believes about addresses (except maybe for postal workers), but programmers are the only ones who have to actually think about them. It would be nice to come up with some sort of conclusion or recommendation. Should addresses just be used as one big blob of text, and never parsed at all? should there be individual per-country libraries for parsing them? should we just address everything by coordinates (which doesn't solve the houseboat problem)? How about a unique identifier for every person on the planet, plus a gps tracking system that guarantees big brother can deliver to you whenever, wherever? Now that the average piece of post is a prig package that needs signing for, rather than a small letter that can just go through the letterbox, I quite like the idea of centralised pigeon-hole buildings, that have existed in many towns as the only method of delivery, but are now being born everywhere thanks to amazon, etc. That's quite a different problem, though :-)
- curryhoward 12y agoI think the consensus is to go with the "big blob of text" approach. You mentioned that postal workers are the only people qualified to parse addresses—let them do it. The validation done on your end shouldn't be much more than asserting that addresses contains non-whitespace characters. I don't know how well this works in practice, but it's the most "correct" thing to do.
- DanBC 12y agoI can understand not validating fields, but users are hopeless and like guidance. Giving them some structure in address fields helps the user through the system.
- misterS 12y ago> I don't know how well this works in practice, As soon as you don't control the whole thing end-to-end, i.e. from the user entering the data to printing it on an envelope: it won't work at all. It would require every program in the whole chain to accept this "big blob", which is simply not going to happen.
- walshemj 12y ago
- nvivo 12y agoThere are so many misconceptions from developers, even more when building apps used worldwide. If you plan to accept data from different countries, free text with no validation is the only acceptable answer. I remember once we had to remove validation from names because some countries don't even have last names, and others have real names with two or even one characters.
- matthewmacleod 12y agofree text with no validation is the only acceptable answer. Unfortunately, it's not an acceptable answer in practice. In my experience, users aren't clear what to do when presented with a free-form, multi-line text box in which they can enter their address. This results in frequent missing data – users aren't aware they need to include a postal code, or county, or country… This is probably because users are generally conditioned to expect separate text fields for separate tokens in their addresses. There's a middle ground though – extract the tokens you need (postal code, country) and allow the user to freeform the rest. And don't even think about trying to validate addresses in any real way – you'll fail!
- nvivo 12y agoOf course I'm not saying single multiline textbox for every app out there. That would be crazy. :-) But I'm always surprised how many sites ask for information that will never be used for anything, and assume things like the lenght or characters valid in zip codes or phone numbers. I heard these days on "There is no such thing as a fish" podcast there is a country somewhere where the post office locates places by directions given by the sender! And that is officially accepted! Crazy world, try validating that. :-)
- jacquesm 12y agoSo, what's the proper way to deal with this then? Ask a series of questions and adapt the follow up to the questions depending on the answer given. Starting out with 'select your country' and then expand from there, the more you know the more you can narrow down the remainder of the input. That would be a nice little widget to be able to throw onto a form 'world accurate address input fields'. And for some localities it will indeed display a freeform text field, but for localities where there is more structure it could supply that structure and make certain bits mandatory.
- pella 12y agosome usefull links: - The free and open global address collection : http://openaddresses.io/ http://openaddresses.io/ ------ "OpenAddresses Hits 100 Million" https://www.mapbox.com/blog/openaddresses-100m/ https://www.mapbox.com/blog/openaddresses-100m/ - OpenStreetMap "addr:housenumber" FREQ http://taginfo.openstreetmap.org/keys/addr%3Ahousenumber#values http://taginfo.openstreetmap.org/keys/addr%3Ahousenumber#val... [ more "14" than "13" ] - OpenStreetMap "addr:street" FREQ http://taginfo.openstreetmap.org/keys/addr%3Astreet#values http://taginfo.openstreetmap.org/keys/addr%3Astreet#values - OpenStreetMap "addr:postcode" FREQ http://taginfo.openstreetmap.org/keys/addr%3Apostcode#values http://taginfo.openstreetmap.org/keys/addr%3Apostcode#values - Derek Sivers: "Japanese addresses: No street names. Block numbers." http://sivers.org/jadr http://sivers.org/jadr - Wikipedia : "Address (geography)" http://en.wikipedia.org/wiki/Address_(geography) http://en.wikipedia.org/wiki/Address_(geography)
- r3pl4y 12y agoOnce you look at Korea, all those rules are only the basics...
- jacquesm 12y agoPatrick has an excellent variation on this theme: http://www.kalzumeus.com/2010/06/17/falsehoods-programmers-believe-about-names/ http://www.kalzumeus.com/2010/06/17/falsehoods-programmers-b... I live on a road that has two sets of numbers, both identical (but several hundred meters removed from each other) in two different towns but with the same name. Getting mail and packages delivered here is for want of a better word a challenge.
- masklinn 12y agoIs it because the post sucks at its job? I would expect this to be handled correctly for the sole reason that you could have two unconnected roads with the same name in two different cities and end up in essentially the same situation, no?
- jacquesm 12y agoI think if they would be further away from each other it would be less of a problem.
- 0942v8653 12y agoSo I guess this is nothing more than a fantasy: http://www.xkcd.com/208/ http://www.xkcd.com/208/
- UrMomReadsHN 12y ago"Some people, when confronted with a problem, think, “I know, I’ll use regular expressions.” Now they have two problems."
- UrMomReadsHN 12y agoIs it common to believe that post codes don't start with zero? All of New England (ME, MA, NH, CT, RI, VT) have zero starting post codes. Plus apparently a part of New Jersey. Map here: http://en.wikipedia.org/wiki/ZIP_code http://en.wikipedia.org/wiki/ZIP_code Also, since it brought up naval vessels, here's the addresses of all US Navy ships: http://www.navy.mil/navydata/ships/lists/ship-fpo.asp http://www.navy.mil/navydata/ships/lists/ship-fpo.asp Anyways, the post office does a wonderful job delivering mail considering how complex addresses can be and how people can have messy handwriting. Also - You can have an address that doesn't map to a physical location that totally looks like it should (not just PO boxes). Consider RPIs address. http://rpinfo.rpi.edu/locateRPI.html http://rpinfo.rpi.edu/locateRPI.html "Correspondence to and from Rensselaer Polytechnic Institute uses the official address of 110 Eighth Street, Troy, NY 12180. This address serves as a mailing address only; you will not find a building with that number on 8th Street."
- kalleboo 12y ago> Is it common to believe that post codes don't start with zero? It may be less of an explicit belief and more of a case of "This looks like a number! Let's store it as a number!" which wipes out leading zeros.
- UrMomReadsHN 12y agoGotcha! I understand now.
- ygra 12y agoWhich also won't work with post codes that are not numeric. The UK has those, for example.
- AaronIG 12y agoYea, this seems to be the case. I've had the leading zero stripped on a few occasions when receiving items at an FPO AE address (all APO/DPO/FPO AE zip codes start with a zero).
- jkot 12y ago
- smcl 12y ago"A road will only have one name" This one's particularly common in Edinburgh. In fact in the example they use - "Regent Road" connects to Princes Street, which becomes Shandwick Place, then Atholl Place. At this point the main fork becomes Dalry Road which then becomes Gorgie Road which becomes Stenhouse Road and then Calder Road - all of which are roughly a straight line: https://www.google.com/maps/dir/Calder+Road,+Edinburgh,+UK/Stenhouse+Rd/Gorgie+Rd,+Edinburgh,+UK/Dalry+Rd,+Edinburgh,+UK/Atholl+Pl,+Edinburgh,+UK/Shandwick+Pl,+Edinburgh,+UK/Regent+Road,+Edinburgh,+UK/@55.9539937,-3.179938,15z/data=!4m44!4m43!1m5!1m1!1s0x4887c427942a3bbb:0xb5f6c3bd2a7a564c!2m2!1d-3.2872785!2d55.9230398!1m5!1m1!1s0x4887c6f3045dd509:0x37d6bdd187c2d7d9!2m2!1d-3.2590407!2d55.9296972!1m5!1m1!1s0x4887c6f92cf9f363:0x1e2575905cb7c023!2m2!1d-3.2400333!2d55.9365554!1m5!1m1!1s0x4887c7a8bc280a39:0xdd1e5bdda92e84e7!2m2!1d-3.2218567!2d55.9425158!1m5!1m1!1s0x4887c7a48581d1f5:0x1f38a0b91d4eebab!2m2!1d-3.214204!2d55.9474842!1m5!1m1!1s0x4887c7a325f46fc1:0xd4ba3dd16343dd18!2m2!1d-3.2105438!2d55.9491457!1m5!1m1!1s0x4887c789c2b1a9ff:0xb23c9c457a777421!2m2!1d-3.1777818!2d55.9538905!3e2 https://www.google.com/maps/dir/Calder+Road,+Edinburgh,+UK/S...
- mtmail 12y agoThere's also the chance a single segment of the road has several names. For example when crossing a bridge or a round-about. Never mind all local names vs official names, old names and translations.
- smcl 12y agoCorrect, and indeed having the same name on different sides of the same road. I just recalled another example from Edinburgh[0] where one side of the street is called "Lochrin Buildings" while the other side of the street is called "Gilmore Place" (then both sides of the street become Gilmore Place, which then invisibly changes its name to Granville Place before changing into Polwarth Gardens. [0] = https://www.google.cz/maps/@55.941979,-3.203582,3a,75y,341.75h,100.38t/data=!3m4!1e1!3m2!1sT0PUyqDdTmZ8msxqf8Yt4w!2e0?hl=en https://www.google.cz/maps/@55.941979,-3.203582,3a,75y,341.7... (I think the smaller lettered "Gilmore Place" underneath hints at a "yeh we know this is sorta Gilmore Place but not really)
- handelaar 12y ago
- 2ion 12y agoSeldom are the only restrictions that apply to an address only the ones in a single software system. In fact, your address data could be the least of the problems you have to worry about. When actually using all the addresses you stored for shipping stuff, it is almost guaranteed that the shipping company will cut off or drop lines from labels, and of course every shipping company is going to have its own quirks. Maybe just because not every address is going to fit onto a fixed label area in a fixed font size. I have in fact lost several shipments to my address(es) due to every single kind of the above caveats.
- Rygu 12y agoDevelopers can't know everything there is to know in the world. Developers aren't suppose to know specific stuff like this. Some parts of modern society are easy to digitalize, other (often historical) parts aren't. I think it's up to entrepeneurs to find ways to solve these problems, and create a better world by doing that. Don't blame/shame developers for stuff like this. It's not even remotely fair. When you're training developers remember that you're not training demigods.
- jacquesm 12y agoWell, after reading this article and other variations on the theme that's one less set of mistakes to make. Even if developers are not demigods they shouldn't be above learning. Entrepreneurs have very little chance of fixing this, it's mostly a local government thing and since it isn't actually broken I highly doubt that something will change. So 'deal with it' is the appropriate response.
- Rygu 12y agoLearning is important. Part of being a developer is that you must keep learning new techniques and facts that help you accomplish your goals or your clients goals. So I'm not saying we don't need to deal with internationalization, localization, and globalization. When the time comes, deal with it. I'm just saying there's no shame in being a developer with little or no expertise in those subjects. Many commenters here don't seem to acknowledge the many amazing technical things that developers generally do know about. Thanks for taking the time to respond in words.
- bojanz 12y agoAnd the solutions for C++, Java, PHP: https://github.com/googlei18n/libaddressinput https://github.com/googlei18n/libaddressinput https://github.com/commerceguys/addressing https://github.com/commerceguys/addressing
- edmccard 12y ago"An address will exist in the country's postal service's database" This is the one that I've run afoul of -- not because I live in a brand-new building, or a houseboat, or 30 miles from anywhere on an unnamed road; it's just that there is no door-to-door delivery for houses within a 2-block radius of the local post office, so we have a PO box. The trouble happens when a business that needs my street address uses the USPS database for address verification. One example is online stores that don't ship to PO boxes. Some of these sites have a form with a sort of "Are you sure" prompt when my street address isn't recognized; others just refuse to accept it. Even worse was when the local company that picked up my trash was bought by one of the larger regional "waste management" operations, and all the drivers' routes were re-planned for "efficiency" (evidently using software that hit some USPS database); the upshot was that everyone on my street had their address removed from the pickup routes.
- IshKebab 12y agoI have this problem too, but just because the UK postcode database that a lot of sites use is wrong. There's not even a way to report it. It means I can basically never pass a credit check at this address.
- lucaspiller 12y agoA lot of companies verify postcodes with QAS, so probably worth reporting it to them: http://www.qas.co.uk/knowledge-centre/product-information/address-postcode-finder.htm http://www.qas.co.uk/knowledge-centre/product-information/ad... They are run by Experian who one of the main credit check companies in the UK, so you might be able to hit two birds with one stone :D
- junto 12y agoYour address should be included in the postcode database if you are registered to vote. Sometimes new addresses take a few months but they should get added eventually. Go register to vote!
- ghaff 12y agoRelated--the "commonly used" address is different from the "official" address. When I moved into my current house, it's official USPS address differed from what many of the local service people thought was the address (and, indeed, what many maps showed to be the address). In these days of GPS--and just the passage of time--it's not a problem any longer. But for the first five years or so I lived in the house, I had to be careful to explain the situation to people coming to the house.
- pcthrowaway 12y agoThis article was submitted here nearly two years ago (as you will find out if you click the link to the HN discussion at the bottom of the article). But I thought of one not included in the article. From Portland's Wikipedia page: > On the west side, the RiverPlace, John's Landing and South Waterfront Districts lie in a "sixth quadrant" where addresses go higher from west to east toward the river ... East-West addresses in this area are denoted with a leading zero (instead of a minus sign). This means 0246 SW California St. is not the same as 246 SW California St. Many mapping programs are unable to distinguish between the two.
- apaprocki 12y agoThe city deserves a "bug" for that. Computers might not be able to distinguish between those easily, but I'd bet most humans (especially ones not from Portland) would have no idea either. Addresses are not set in stone -- it's easy enough for them to fix and avoid the entire issue. edit: I've had my zip code changed within the last few years. That causes the same amount of pain as changing any other part of the address and is done without much fanfare.
- chris_wot 12y agoThere are so many formats - is there anniversary format for addresses? In all seriousness, this is where XML and XSDs would really shine!
- chris_wot 12y agoHowever, turns out this is a problem that is solved by Google :-) https://github.com/googlei18n/libaddressinput/wiki/AddressValidationMetadata https://github.com/googlei18n/libaddressinput/wiki/AddressVa...
- deleted 12y ago[deleted]
- shdon 12y agoIt's not even true that a single building has only one address, must exist in one town or even in one country. There's a house that has one address in Baarle Hertog (Belgium) and another address in Baarle Nassau (Netherlands), with different house numbers too.
- drivingmenuts 12y agoThat article can also be read as a list of things that need to be fixed by the various postal systems. We can issue addresses to computers, many of which cannot be considered to be in a fixed place, yet somehow we can't issue a permanent, unique address to something that's not likely to move around much.
- a3n 12y agoZip+4 was/is an attempt to get close to that, but not right up to it. I have no idea what my +4 is. In the two or three cases over many years that I actually had to fill it in (and cared enough to continue), I had to look on the USPS web site.
- rmc 12y agoReminds me of a quote from a geocoding session at an OpenStreeMap conference. "Addresses are not a theoretically hard problem. The problem is that people don't follow standards, or have the same standard." Trying to get everyone on the planet to massively change how they view the world is not easy.
- hawkice 12y agoA falsehood only distantly alluded to: That people have addresses at all, or can describe their residence in an unambiguous or clear way (even using GPS coordinates). I used to live in a place I couldn't even remotely give directions to. It was deep within a neighborhood of a poorer country, none of the streets had names, none of the buildings are numbered. I lived in an building where none of the apartments had numbers or names. If I wanted something delivered, I would go to a local shop for the company delivering it, and show my ID, and they would have it routed there if it wasn't in the building already. If you wanted a billing address for, I don't know, tracking me down, initiating lawsuits, something like that? I honestly just assume that's impossible.
- userbinator 12y agoeven using GPS coordinates How can GPS coordinates be ambiguous? I can see different units of measure/notations being used, and the accuracy might be a problem for extremely close addresses, but wasn't it the point of GPS to provide an exact reference for any point on the planet?
- MatthewWilkes 12y agoIn the UK, locations may be encoded as Ordinance Survey map references (I've heard of people using OS references as addresses). It is what most geo databases in the UK were keyed on, until a few years ago. The OS uses a different datum to the GPS system, so if you convert to lat/lon you'll be out by about 150 metres (where I am, at least). You need to re-project the coordinates onto the other datum to get the real location.
- cstigler 12y agoGPS coordinates don't generally include altitude, correct? If he's in a six-floor apartment, how could GPS define which floor he's in?
- dignati 12y agoThen the full name should be anough to determine the floor. More problematic though is the inaccuracy of GPS. Where I live, my smartphone's GPS encircles 3 buildings.
- rmc 12y agoAs someone from Ireland, a country with unusual addresses, this is spot on.
- dasil003 12y agoWhen I moved to London and opened up a Lloyds Bank account (then Lloyds TSB), I was confused to find they did not consider my office postcode W1F 7RB valid. I poked at it a bit and found some programmer assumed that the first half of a UK postcode was \w+\d+. The hilarious part was the branch I was opening an account at was in W1S, so their form wouldn't even take their own postcode.
- markbnj 12y agoThis hit home for me as a couple of months ago we faced the choice between continuing to develop a parser-based approach to location extraction from free text, or moving to an entity extraction and search approach, i.e. geotagging or geocoding. Notably we were just trying to get city and state, and even limiting ourselves to the U.S. the combinations we were seeing made parsing seem like a game of increasing complexity delivering diminishing returns. We ultimately went with a search-base approach and it's been working much better and is more tolerant of format variations.
- kimdouglasmason 12y agoAn observation: My street address is XXXX Martin Luther King Jr Way, Apt XXX The number of organizations that accept the address, but chop off the apartment number when they send mail because it is too long is ridiculous. Even better, it tends to be government departments. For example, the IRS does this. Martin Luther King Jr Way has to be one of the most common street names in the US. Many orgs can't even get the simple cases right; I don't hold out much hope for the obscure cases. See the Google 'real-names' debacle for just how wrong people can get this kind of thing, even when they're being loudly told that they're doing it wrong.
- samatman 12y agoPro-tip: no one will ever, ever misdeliver a package addressed to {house#} MLK #{Apt#}. I've lived on an MLK. If you live on Lakeshore Drive in Chicago, LSD works just as well. Where MLK is concerned, he has an official holiday, Americans know what those three letters mean.
- TazeTSchnitzel 12y agoMLK Jr. for extra clarity?
- dmckeon 12y agoSimilar to "Street names don't recur" - A named road will be continuous: a friend lives in a condominium, in one of a group of 8 buildings bounded by 3 fairly normal roads. There are 4 separate driveways between buildings leading to parking. At some point the condo units were renumbered with street numbers, and the disjoint driveways were all given the same name: <Condo> Lane. Regular delivery drivers - USPS, UPS, FedEx, and pizza seem to cope, but taxi drivers or other irregular visitors who expect numbers to be continuous along streets are almost always baffled. Similar to "A road will only have one name", for emergency services - fire, ambulance, and police - a similar case arises when a route passes through several small towns, each with its own set of street numbers, possibly with variations of proper street name, and perhaps with different direction/cardinality mappings. For a motorist calling 911, reporting that one is at street number 123 on El Camino Real (on the SF peninsula) will probably map to several possible locations, depending which of the 12 or so towns one is in.
- pbhjpbhj 12y agoI know a UK semi-detached house that has 2 postcodes.
- GigabyteCoin 12y agoNow I understand why PayPal lets scammers register with an address that reads "asd, asdf,asdff, Turkey" and immediately allow somebody with that address to send me funds. (Ultimately stealing/using the credits they purchased instantly from my site with the fake paypal account setup on a stolen credit card) Without a current streetmap of the entire world, how would you really know it's a bogus address?
- koenigdavidmj 12y agoOne more: in SW Portland there is a section east of the 0 line on the street grid where all buildings have a leading zero. 0634 and 634 are different addresses on the same street.
- Hussell 12y agoI've personally seen a building with a fractional street number, in Kingston, Ontario, Canada. I've also had to deal with irregular addresses in Canada. Working on a Canada-only program, I was expecting addresses to have the components: [unit-number, ]building-number street-name city/town, province/territory, country postal-code I was fortunately already expecting characters from the two official languages of Canada, English and French, so I was prepared to deal with accented characters. Later, I had the opportunity to work in Iqaluit, Nunavut, Canada, which violated most of my assumptions, both explicit and implicit. First, the territory (not province) of Nunavut is a relatively recent creation, having been created by splitting off a part of the Northwest Territories on April 1st, 1999. Before that, the addresses were all in a different territory. Second, Iqaluit uses a system where every building in the city has a unique number. Currently (2015) the highest number is rapidly approaching 7000, but at the time it was in the 5000s. In addition to their unique number, some buildings also have a name, which is sometimes written only in the Latin alphabet, sometimes written only in the Inuktitut syllabary, sometimes either, and in at least one case both. When a building has both a name and a number, people may use just one or the other. (I haven't found a building without a number yet, but I'm no longer going to assume there aren't any.) Street names were not introduced until 2003, and when they were, all street signs were labeled in both the Latin alphabet and the Inuktitut syllabary. Since the system of uniquely numbering every building is continuing, most people ignore the street names unless they're actually talking about streets, not buildings. Nonetheless, some attempts have been made to get everyone to change their mailing addresses to include the street. In every case, everyone has agreed that use of the Inuktitut syllabary should be encouraged. All these peculiarities are in the territorial capital, where almost all the territorial government and law-enforcement addresses are, so anyone dealing with addresses for the Canadian government should be aware of this (but probably isn't). On a related topic, the US has long had a system of two-letter abbreviations for its states, commonly used in its addresses. Canada eventually introduced a standard set of two-letter abbreviations for all its provinces and territories, being careful not to duplicate any of the US state abbreviations. However, many people still use the traditional abbreviations, which are of variable length, sometimes have completely different French and English versions, and sometimes include hyphens to prevent confusion with US state abbreviations. (So 'T-N' might appear, meaning 'Terre-Neuve', the French name for Newfoundland, with the hyphen mandatory to prevent it from being mistaken for the US abbreviation for Tennessee. Periods and capital letters with accents also appear, e.g. 'Î.P.É.') Since its introduction, the "standard" two-letter system has seen at least three name changes. Quebec was PQ before 1991 and is now QC, although sometimes QU or QB show up, Nunavut was added in 1999 (previously part of NT, now NU), and Newfoundland changed its name to Newfoundland and Labrador in 2001, and its abbreviation from NF to NL in 2002. Also, the territory formerly known as "Yukon Territory" officially changed its name to just "Yukon" on April 1st, 2003. (What is it with the Canadian territories and changing important stuff on April 1st?) Their postal abbreviation did not change however. It's still YT, not YK, despite the latter being used fairly often and making more sense now. This matters because not all two-letter abbreviations appearing in the database (this includes your database) are on the standard list, either because they were entered incorrectly, or because they were correct when they were entered, but have since changed, and the database wasn't updated for fear of breaking working code. As a result, a naive lookup-table to get the full province name from the two-letter abbreviation will fail.
- SeanLuke 12y ago> No buildings are numbered zero > Counterexample: 0 Egmont Road, Middlesbrough, TS4 2HT A more fun counterexample: the Black History Museum in Richmond Virginia is located at "00 Clay Street". That's 00, not 0.
- montecarl 12y agoIsn't it a false dichotomy that you can either have a complicated multipart form or a freeform text box for addresses? Why not by default show the multiform box that provides some nice (optional) validation to catch that vast majority of cases and also give the user an option to fill out a freeform text box if the former doesn't work for them?
- MatthewWilkes 12y agoOne I always enjoyed that's not on the list (because it's UK specific, I guess) is: Buildings don't have multiple postcodes in different outcodes ( https://en.wikipedia.org/wiki/Postcodes_in_the_United_Kingdom#Outward_code https://en.wikipedia.org/wiki/Postcodes_in_the_United_Kingdo... ). Counter example: * Merchant Venturers building, Woodland Road, Bristol BS8 1UB * Merchant Venturers building, Park Row, Bristol BS1 5UB
- anon4 12y ago> Addresses will have a street > An address will include a state These two are quite annoying whenever I have to write my address somewhere that presumes them. Here an address is city, city area (by name), block inside the area (by number, sometimes a letter). Blocks are numbered in the order they're built, so their numbering doesn't follow any pattern. And while there is a street passing by and it does have a name, the building itself doesn't have an address on the street. And no, we don't have states. From the description above, you might think that the city:city area might be used like state:city, but no. City is city-sized, city area is neighbourhood-sized. Additionally, there are addresses on streets, but those are not the same places as area-block numbers. Sites around here that need to get your address either include every possible field and ask you to only fill in the applicable ones, or give you a free-form text area after asking for which city and post code you're at. I think amazon gets it right - country, administrative area (state in the US, something else in other countries, maybe nothing in some), city, postal code, two freeform lines.
- jakub_g 12y ago"Wikipedia has a photo of a parcel where a Russian/Cyrillic address was displayed on a computer with the wrong character encoding, and transcribed from that. Reportedly a russian postal worker was able to reverse the mapping and deliver the parcel." The linked URL doesn't work anymore but thanks to Archive.org and reverse image search in Google I managed to find it: https://web.archive.org/web/20130909052627/http://en.wikipedia.org/wiki/File:Letter_to_Russia_with_krokozyabry.jpg https://web.archive.org/web/20130909052627/http://en.wikiped... http://upload.wikimedia.org/wikipedia/ru/thumb/f/fa/Letter_to_Russia_with_krokozyabry.jpg/755px-Letter_to_Russia_with_krokozyabry.jpg http://upload.wikimedia.org/wikipedia/ru/thumb/f/fa/Letter_t...
- breakingcups 12y agoThat is one dedicated postal worker.
- jmharvey 12y agoI'm not sure how many of these falsehoods programmers actually believe. But one falsehood I've actually seen in the wild isn't included: "(Direction) Street" is necessarily the same (or different) than "Street." Or even if they're different, users will understand the difference, at least on a local basis. I had a GPS that would always omit any directions that prefixed a street name. I was occasionally thrown for a loop when it told me to turn on Beacon St in Boston, when it really meant North Beacon St, which is a nearby, but unrelated, street.
- 6t6t6 12y agoMaybe a good approach would be to use a format that somehow fits 99% of the addresses and a link on the bottom of the form with the text "Problems fitting your address in that form?". When the user clicks the link, all the fields of the form would be substituted by just a multi-line input field. Then you have a solution for the 1%.
- zimbu668 12y agoI didn't see this one mentioned: in addition to crossing city and county lines, ZIP codes also cross state lines. http://www.answers.com/Q/How_many_zipcodes_cross_state_lines http://www.answers.com/Q/How_many_zipcodes_cross_state_lines
- firegrind 12y agoMy mainland European address saves me a fortune in online shopping - payment and delivery both usually fail. My two neighbours and I share a driveway but we have our own gates and house numbers. The street is unnamed and unnumbered like the other roads in the immediate area. There are at least two valid postcodes for the property, which is a few minutes walk from a major administrative boundary. Postal deliveries might turn up once in four to six weeks. When I put this info into card validators, then tell them that my bank is in a different country to the one I'm ordering from, they generally barf.