» Postcode Lookups Suck

Postcode Lookups Suck

Websites which have address forms for UK residences, whether for buying new products, paying bills or registering interest, I have a simple request: do not presume your database knows my address better than me.

For the benefit of non-UK readers, let me explain. The UK has a system originally designed for mail delivery called the Postcode, which is similar to the US zip code system. Unlike zip codes, it’s far more granular, generally resolving to a handful of addresses. In fact, most of the time, if you have a post code and house number, you can uniquely identify a particular delivery address. That’s all that is needed: a G1 4BQ and a 35.

In 7 characters, most people can be readily identified. That’s the power of postcodes.

A lot of UK websites take this as an absolute fact with no room for error. They take the data from the Post Office, see that it works for them, and forget about it. You either fit the pattern, or your house doesn’t exist. I’m sure you can see where I’m going with this.

One big problem is that large parts of the UK have some form of communal housing: tenement blocks, modern apartment blocks, high-rises etc. This is where things break down. As well as having a house number (the 35 above), they will also have a flat number like 3/2 (floor 3, flat 2), 4D (floor 4, flat D) or any other variation on the above. This is where things get very hairy:

Most systems will fall flat in the face of any of these. While fixing these problems directly is hard (to near enough impossible), there’s a very simple solution originally posited by Postel:

Be conservative in what you do; be liberal in what you accept from others

Yes, it’s the simple: just accept whatever your users, the people who live at the address, put into your form. They know the correct answer far better than you ever will, so believe them when they put something in. If you want to help them by offering a post-code lookup, that’s fine, encouraged even; but don’t insist that they use it. That just hurts the usability of your system.

True dat. My flat address is 7/BF2. I’ve encounted a number of forms which simply do not let you enter non alpha-numeric numbers into the house number box and it’s driven me mad.

Neil: it was exactly that problem that made me decide to write about the numerous problems I’ve had over the last few years. I don’t think I’ve lived anywhere that the address hasn’t caused a problem at some point (maybe the house I grew up in, but only because it was pre-internet becoming popular).

Ditto. Number 2/1 for me.

You also sometimes have sites that accept that as the house number, but then remove all non alphanumeric characters. So I end up being house 21, and as the order has gone through already no room to edit it. Meh :)