Table of Contents

Falsehoods Programmers Believe About Addresses

some Falsehoods programmers believe via mjt.me.uk

Perhaps you've read posts like Falsehoods Programmers Believe About Names and Falsehoods programmers believe about time. Maybe you've also read Falsehoods programmers believe about geography.

Addressing is a fertile ground for incorrect assumptions, because everyone's used to dealing with addresses and 99% of the time they seem so simple. Below are some incorrect assumptions I've seen made, or made myself, or had reported to me. (If you want to look up an address for a UK postcode or vice-versa to confirm what I'm telling you, try the Royal Mail Postcode Finder)


An address will start with, or at least include, a building number.

Counterexample: Royal Opera House, Covent Garden, London, WC2E 9DD, United Kingdom.

When there is a building number, it will be all-numeric.

Counterexample: - 1A Egmont Road, Middlesbrough, TS4 2HT - 4-5 Bonhill Street, London, EC2A 4BX

No buildings are numbered zero

Counterexample: 0 Egmont Road, Middlesbrough, TS4 2HT

Well, at the very least no buildings have negative numbers

Guy Chisholm provided this counterexample: Minusone Priory Road, Newbury, RG14 7QS (none of the databases I've checked render this as -1)

We can put those funny numbers into the building name field, as no buildings have both a name and a funny number

Counterexample: Idas Court, 4-6 Princes Road, Hull, HU5 2RD

When there's a building name, there won't be a building number (or vice-versa)

Counterexample: Flat 1.4, Ziggurat Building, 60-66 Saffron Hill, London, EC1N 8QX, United Kingdom

A building number will only be used once per street

When there's line with a number in an address, it's the building number.

Counterexample: Flat 18, Da Vinci House, 44 Saffron Hill, London, EC1N 8FH, United Kingdom

OK, the first line starting with a number then

Counterexample: 3 Store, 311-318 High Holborn, London, WC1V 7BN

A building will only have one number

The number of buildings is the difference between the highest and lowest building numbers

Cyrille Chépélov and Sami Lehtinen tell me in Antibes, France and rural Finland some buildings are numbered based on the distance from the start of the road - such as Longroad 65 for the building 750m from the start of longroad.

If the addresses on the left of the road are even, the addresses on the right must be odd

A building name won't also be a number

Well, at least you can omit leading zeros

A street with a building A will not also have a building Alpha

A street name won't include a number

OK, but numbers in street names are expressed as words, not digits

When there's a numbered street and a house number, there will be a separator between them

Street names always end in descriptors like 'street', 'avenue', 'drive', 'square', 'hill' or 'view'

OK, but when they do have a descriptor there will only be one

OK, but when they do have a descriptor it will be at the end

OK, but if there's a descriptor it'll be at the start or end of the street name.

OK, but at the very least you wouldn't name a town Street

Street numbers (and building numbers) don't contain fractions

Gene Wirchenko reports a fractional building number: 1313 1/2 Railroad Ave Bellingham WA 98225-4729

Street names don't recurr in the same city

Here's a map of the following addresses:

  1. High Street, London, W3 6LJ
  2. High Street, London, W5 5DB
  3. High Street, London, N8 7PB
  4. High Street, London, SE25 6EP
  5. High Street, London, E13 0AJ
  6. High Street, London, E17 7LD
  7. High Street, London, NW10 4LX
  8. Islington High Street, London, N1 9TR
  9. Shoreditch High Street, London, E1 6PG
  10. Camden High Street, London, NW1 0JH
  11. Kensington High Street, London, W14 8NL
  12. Lewisham High Street, London, SE13 6AD
  13. High Street Wimbledon, London, SW19 5DX
  14. High Street Wanstead, London, E11 2AJ
  15. High Street Colliers Wood, London, SW19 2AE
  16. High Street North, London, E6 2HJ

But street names don't recurr in close proximity

An address will be comprised of road names

Leoni Lubbinge gives an example of a South African address: Part 84, Strydfontein 306 JR, Pretoria which means the 84th plot of the farm Strydfontein 306 JR.

A road will have a name

Peter Kenway points out in America some homes are addressed as Rural Routes, where numbers are allocated to boxes on a route covering multiple roads. For example: Box 1234, R.R. 1, Winthrop, ME 04364.

A road will only have one name

Roads may also be named in multiple languages. For example, in Ireland roads may be named in both English and Irish

Addresses will only have one street

Another counterexample: Rogue Hair, 1 Hopton Parade, Streatham High Road, London, SW16 6EP (Streatham High Road is the street. Hopton Parade is a little row of shops on the road - Google Maps )

Addresses will have a street

An address will include a state (in the US sense.)

Counterexample: Any address in the United Kingdom.

Addresses will have something other than the organisation and city name.

An address will have a county

An address require both a city and a country

You can't have two towns cities with the same name in the same country

OK, but those cities won't have duplicate street names

An address will have a postcode

The user will know their postal code/zip code.

A single postcode will be larger than a single building

In the UK, alphanumeric postcodes are typically much more precise than US zip codes.

OK, but you don't get multiple postcodes per building

Malcolm Gilbert points out this example, with five postcodes for five departments:

  1. London Borough of Enfield, Civic Centre, Silver Street, ENFIELD, EN1 3ES
  2. Returning Officer, London Borough of Enfield, Civic Centre, Silver Street, ENFIELD, EN1 9SA
  3. Edmonton, London Borough of Enfield, Civic Centre, Silver Street, ENFIELD, EN1 9SB
  4. Enfield North, London Borough of Enfield, Civic Centre, Silver Street, ENFIELD, EN1 9SD
  5. Enfield Southgate, London Borough of Enfield, Civic Centre, Silver Street, ENFIELD, EN1 3ZW
  6. But the Enfield council website contact page lists their postcode as EN1 3XY - which the Royal Mail think is a PO Box at the sorting office.

A single postcode will only cover a few tens of addresses / customers

Some addresses correspond to 'flexible office spaces' and organisations that offer PO Boxes that sound like fancy offices. The Royal Mail lists more than 90 organisations operating out of Tower 42, 25 Old Broad Street, London, EC2N 1HQ. Holiday parks and cottages may also appear on many customers' accounts.

A zip code corresponds to a single city

Zip codes don't start with a zero

  1. Except Corsica - Cyrille Chépélov reports it's split into départements 2A and 2B, but the Post Office kept the former single-number 20 (Ajaccio, 20000; Bastia, 20200)

Addresses will have a reasonable number of characters - less than 100, say.

But street names will be reasonably short - certainly less than 50 characters

Graham Rhind suggests this 89-character street name in Bihac, Bosnia: Aleja Alije Izetbegovića Prvig Predsjednika Predsjedništva Republika Bosna i Hercegovina

Five lines and country will cover all cases.

=== Addresses don't contain commas** (so I can replace newlines with commas then commas with newlines and get back to where I was)

Addresses can contain organisation names, and organisation names can contain commas. For example: Society of College, National & University Libraries, 102 Euston Street, London, NW1 2HA

But they don't contain commas, brackets, apostrophes, hyphens, ampersands, dots or exclamation marks

An address will exist in the country's postal service's database

An address in the country's postal service's database will exist

The address from the postal service database is sufficient to deliver

Every address can be expressed in a way that will pass all validators

  1. Top o' th' Lane
  2. Top o'th' Lane
  3. Top oth Lane
  4. Top o' the Lane
  5. Top of the Lane
  6. Workhouse Lane (a historical name of the road)
  7. Denham Lane (name of the road continuation)

Customers will have a fixed address with a fixed location

Sharon Freas has dealt with systems supporting “Snowbird” clients, who alternate between addresses with the changing seasons.

But written addresses don't change

Postal, traditional and administrative counties all line up, right?

Military addresses are just like regular addresses

Ed Schiebel reports the postcodes allocated to Israeli army units roam around with the units.

An address corresponds to the recipient's location.

An address can be expressed with a single country

Overseas territories aren't (or are) always included in the postal code system

All addresses with a box number are PO Boxes

Addresses will be written in ASCII or at least Latin characters

@shyhoof wrote an poem about an address label with ó converted, via latin1 and two rounds of HTML entities, into ó

Addresses will be written in the character set of the destination country

But people at least use the same character set for the entire address?

Addresses will be written from most to least specific

OK, but they'll either be in either ascending or descending specificity

OK, but at least the same address will always be written in the same order

Building numbers appear before street names

Sami Lehtinen provides this example from Finland: Kornetintie 6 A II krs (Kornetintie is the street name, 6 the building number, A the staircase, II krs indicates the second floor.

Flat names/numbers names appear before building numbers

A building will be within a few hundred meters of a public road

An address with a street name is always closer to that street than any other

Real place names won't contain rude words

A customer will only want reminders mailed to single address

Each person has exactly one address