Falsehoods Programmers Believe About Addresses
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
The difference between 50 Ammanford Road, Tycroes, Ammanford, SA18 3QJ and 50 Ammanford Road, Llandybie, Ammanford, SA18 3YF is about 4 miles (
Google Maps).
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
You also get suite numbers, floor numbers, unit numbers, and organisations with numbers in their names.
Adrien Piérard contributes an address from Japan with fifteen digits in six separate numbers (five if you count the zip code as a single number). The format is: 980-0804 (zip code), Miyagi-ken (prefecture) Sendai-shi (city) Aoba-ku (ward) Kokubuncho (district) 4-10-20 (sub-district-number block-number lot-number) Sendai (building name) 401 (flat number).
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
Benton Lam offers this address from the Hong Kong Special Administrative Region - it has both a number on its road (14) and in its group of buildings (3): 15/F, Cityplaza 3, 14 TaiKoo Wan Road, Island East, HKSAR
The number of buildings is the difference between the highest and lowest building numbers
Tibor Schütz points out building numbers may be skipped - for example, on a street where even-numbered buildings are on one side, odd numbers on the other; multiple buildings sharing the same number (such as where a new house has been built) and buildings with more than one number.
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
Ben Tilly reports on Ten Post Office Sq, Boston MA 02109 USA - which is not, reportedly, the same as 10 Post Office Sq, Boston MA 02109 USA.
Well, at least you can omit leading zeros
A street with a building A will not also have a building Alpha
Douglas Perreault reports he lived in a block within a condo association; it was a large association, with blocks A through Z then Alpha, Beta, Gamma, Delta, and Theta. Mail and deliveries were often misrouted from block Alpha to block A and vice-versa. His address at the time was: 14100 N 46th St., Alpha 39, Tampa, FL 33613
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
Another from Jan Jongboom: Gondel 2695, Lelystad, means area Gondel, street 26, number 95
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
Dan, Fred Kroon, David Underwood and Daniel Dickison submitted examples of fractional street numbers like
43rd ½ St, Pittsburgh, PA, and of fractional building numbers. These can be written in unicode (43rd ½ St), as a fraction with a slash (43 1/2) or as a decimal (43.5)
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:
High Street, London, W3 6LJ
High Street, London, W5 5DB
High Street, London, N8 7PB
High Street, London, SE25 6EP
High Street, London, E13 0AJ
High Street, London, E17 7LD
High Street, London, NW10 4LX
Islington High Street, London, N1 9TR
Shoreditch High Street, London, E1 6PG
Camden High Street, London, NW1 0JH
Kensington High Street, London, W14 8NL
Lewisham High Street, London, SE13 6AD
High Street Wimbledon, London, SW19 5DX
High Street Wanstead, London, E11 2AJ
High Street Colliers Wood, London, SW19 2AE
High Street North, London, E6 2HJ
But street names don't recurr in close proximity
Julian Fleischer provides an example from Bocholt in Germany showing several roads in close proximity all called
Up de Welle.
An address will be comprised of road names
Kirk Kerekes spent several years using an address of the form “2 mi N then 3 mi W of Jennings, OK 74038” which regularly got successful deliveries. Mike Riley used to mail the Very Large Array radio telescope at “50 miles (80 km) West of Socorro, New Mexico, USA”
Sam pointed me to
Menomonee Falls where houses are addressed using Milwaukee County's grid system instead of house numbers - giving addresses like N88 W16541 Foobar St.
Andy Monat sent the following address example, from a
semester abroad program at Tulane University : CIAPA, 50 meters north of the Hypermas/Walmart of Curridabat, San Jose, Costa Rica. Adrien Piérard and Luke Allardyce point out street names are seldom used in Japan - instead, districts and blocks and lot numbers are used (more info on the
Wikipedia entry for the Japanese addressing system). A
2002 World Press Review report gave this sample address: From where the Chinese restaurant used to be, two blocks down, half a block toward the lake, next door to the house where the yellow car is parked, Managua, Nicaragua. Shaun Crampton sent
an article with more details and examples of the Nicaraguan system. Stig Brautaset pointed out
a BBC article about post in Kabul gives this example: “Hamid Jaan, behind Darul-Aman palace”. Nathan Fellman reports similar addressing is used in Nicaragua and Costa Rica.
Paul Puschmann and Tibor Schütz pointed out the city of
Mannheim in Germany is sometimes called Quadratestadt (City of Squares) as the city centre is arranged in a grid, with blocks assigned a letter (along the north-south axis) and a number (along the east-west axis) then buildings numbered by block number. So an example address at numbers 6 to 13 on block R 5 would be: Institut für Deutsche Sprache, R 5, 6-13, D-68161 Mannheim
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
Many different roads, from Goswell Road in London to Regent Road in Edinburgh, make up the 410 mile
A1. And while there may only be one “1 Goswell Road” and only one “1 Regent Road” there are multiple buildings numbered 1 on the road designated A1.
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
The Royal Mail have what they call a 'dependent street' - for example: 6 Elm Avenue, Runcorn Road, Birmingham, B12 8QX, United Kingdom (Runcorn Road is the street, Elm Avenue is the stubby 'dependent street' and isn't unique within the city.
Google Maps )
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
The Royal Mail will deliver to certain premises by name, such as farms and cottages. Example: Oakland, Fairseat, Sevenoaks, TN15 7LT, United Kingdom (Fairseat is the town - this is actually on Vigo Road.
Google Maps )
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.
Large recipients of mail are sometimes addressed by organisation alone - for example: Electoral Reform Society Ltd, London, N1 1RS, United Kingdom
An address will have a county
-
Yves Daoust reports that in Belgium an address only requires a street, postcode and city; example: Boulevard Frère Orban, 27, 4000 Liège. Erik Engheim reports that in Norway Oslo is a By (city), Tettsted (urban area), Kommune (municipality) and Fylke (county) but it usually only appears once in a written address.
An address require both a city and a country
jzwinck points out Singapore is a city-state, leading to addresses like Singapore, Singapore - or even Singapore, Singapore, Singapore if you demand a city, county and 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
10 High Street, Newport, PO30 1SS
10 High Street, Newport, NP20 1FQ
10 High Street, Newport, TF10 7AN
An address will have a postcode
Richard Fletcher, Lee Hosty, Paul O'Nolan, Simon Diab, Tony Finn, Donal Maccarthy, mark lynch and Donovan all pointed out countries like the Republic of Ireland have addresses without postcodes, or only have postcodes in certain parts of the country. Danny Angus points out this is also the case in Hong Kong.
-
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:
London Borough of Enfield, Civic Centre, Silver Street, ENFIELD, EN1 3ES
Returning Officer, London Borough of Enfield, Civic Centre, Silver Street, ENFIELD, EN1 9SA
Edmonton, London Borough of Enfield, Civic Centre, Silver Street, ENFIELD, EN1 9SB
Enfield North, London Borough of Enfield, Civic Centre, Silver Street, ENFIELD, EN1 9SD
Enfield Southgate, London Borough of Enfield, Civic Centre, Silver Street, ENFIELD, EN1 3ZW
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
Mostly this is reasonable in the UK, but there are certain exceptions. For example CV4 7AL is the postcode of the University of Warwick - one postcode for 6,000 students living on campus, and academics/administrators working on campus.
Also, if your customers get things delivered to them when they're on holiday, lots of customers may have the same holiday parks on their accounts.
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.
Victor Nicollet contributes the example of French postcode 75015, representing the XVth arrondissement of Paris, which covers over 230,000 people.
A zip code corresponds to a single city
Mike Cohen reports zip code 33334 covers 3 cities: Oakland Park, Wilton Manors, and Fort Lauderdale, all in Florida.
Zip codes don't start with a zero
Some Brazilian zip codes do according to speeder, as do
Israeli postcodes for army units. Jessica Enders and Frank Malcolm pointed out postcodes in the Northern Territory of Australia start with 08; for example the
postcode for the city Darwin is 0800. Morsillo Lindsay, Thomas Norris and Jerry B. Altzman point out American addresses in the north east have zip codes starting with zero, for example Ten Post Office Sq, Boston MA 02109, USA; and some zip codes start with two zeros. Mikael Vejdemo-Johansson reports the zip code of Jena in Germany is 07737.
Antti Vikman and Johan Myréen tell me all postcodes in Helsinki, the capital of Finland, all start with two zeroes. Some special codes even start with four zeroes (00002 HELSINKI). Andrew Jones reports the initial digits of French postcodes are the départements*, and may use a leading zero. Post addressed to 06130 Grasse is correctly delivered to the town in district 06, Alpes Maritimes - but post addressed to 6130 Grasse is first routed to department 61, Orne. klez reports Italian Codice di Avviamento Postale (CAP) numbers can have a leading zero.
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.
Not when organisation and department names can be included in addresses! For example: Department For Environment Food & Rural Affairs (D E F R A), State Veterinary Service, Animal Health Office, Hadrian House, Wavell Drive, Rosehill Industrial Estate, Carlisle, CA1 2TB, United Kingdom
Another example: The Gynaecology Cancer Research Unit, Department of Obstetrics & Gynaecology, St. Bartholomews & The Royal School of Medicine & Dentistry, Charterhouse Square, London, EC1M 6GR, United Kingdom
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.
You'll need 8 lines and country to deliver to:
GB Technical Services, Unit W7a, Warwick House, 18 Forge Lane, Minworth Industrial Park, Minworth, Sutton Coldfield, B76 1AH, United Kingdom
=== 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
St. Judes & St. Pauls C of E (Va) Primary School, 10 Kingsbury Road, London, N1 4AZ
-
1 Highview Terrace,
Westward Ho!, Bideford, EX39 1AQ (exclamation mark is omitted in some databases)
Flat 1.4, Ziggurat Building, 60-66 Saffron Hill, London, EC1N 8QX, United Kingdom
Kirkland, Lane, Mathias & Perry, North Muskham Prebend Church Street, Southwell, NG25 0HQ
Mark Wallace tells us The Hague in the Netherlands is has multiple official names, one of which is
's-Gravenhage (not a plural, literally a city name starting apostrophe s and with a hyphen)
-
More generally, addresses can contain organisation names, and organisations can have names like Yahoo! with an exclamation mark. Legislation on company
sets out the allowable characters for the UK and it permits company names including ! LTD (company 08209948); @ LTD (company 08209882); $ LTD (company 08209885) and % LTD (company 04487680) as well as a variety of other names I don't have examples for as the companies house website won't let me search for them.
An address will exist in the country's postal service's database
An address in the country's postal service's database will exist
Royal Mail and Ordnance Survey data can contain demolished buildings, and buildings currently under construction. The Royal Mail even have a database product called
Not Yet Built. Temporary postcodes can even be assigned to building sites!
The address from the postal service database is sufficient to deliver
Every address can be expressed in a way that will pass all validators
XaspR8d must have been exasperated by the fact his road is variously known as “S Hwy X”, “Highway X” and “South County Rd X” - and related a story of being unable to buy a product as the only addresses that passed a vendor's address validation wouldn't pass his bank's address validation and vice-versa.
Jon Peterson lives in an apartment community that is divided into Quail Ridge Cir, Quail Ridge East Lane and Quail Ridge West Lane. Only the USPS and the city electric utility seem to recognize the “Lane”. Everyone else requires it be shortened to “Quail Rdg E” (or W) and reportedly when UPS turns a package over to the USPS it gets returned as undeliverable-no such address.
Susannah Fleming lived on the road the Royal Mail call Top O'The Lane, Brindle, Chorley, PR6 8PA. She reports representations in different databases include:
Top o' th' Lane
Top o'th' Lane
Top oth Lane
Top o' the Lane
Top of the Lane
Workhouse Lane (a historical name of the road)
Denham Lane (name of the road continuation)
Customers will have a fixed address with a fixed location
A developer just a few seats from me recently brought a
house boat with the intention of using it as her primary residence. Needless to say, boats can move - including between towns and even countries!
-
Sharon Freas has dealt with systems supporting “Snowbird” clients, who alternate between addresses with the changing seasons.
But written addresses don't change
Addresses can move between counties and administrative districts. For example, I used to live in
the county Gwent, but that no longer exists. Addresses may also be assigned new postcodes.
Susanne Schmidt points out cities, streets and entire countries were renamed in eastern europe - for example, when Lenin fell out of favour as a street name. Addresses can be in disputed territories, or even war zones.
Douglas Perreault reports owning a condo that changed address three times; first it was 14100 N 46th St., Alpha 39, Lutz, FL 33549; then a new post office was built and it became 14100 N 46th St., Alpha 39, Tampa, FL 33612; then the ZIP Code changed giving 14100 N 46th St., Alpha 39, Tampa, FL 33613; then the condo association changed to a less error-prone block naming scheme, giving 14410 Hanging Moss Circle, #101, Tampa, FL 33613.
Postal, traditional and administrative counties all line up, right?
Military addresses are just like regular addresses
Peter Bailey points out several countries have special
military mail to deal with the complexities of delivering to soldiers deployed to other countries, ships at sea and similar; and their addresses don't always follow conventional address formats. For example, the address BFPO, BF1 4FB is the address of the navy vessel
HMS Example.
Ed Schiebel reports the postcodes allocated to Israeli army units roam around with the units.
An address corresponds to the recipient's location.
Addresses such as
PO boxes are often only as precise as the recipient's city or sorting office. Jessica Enders tells me the Australian post service Reply Paid addresses (no stamp needed); PO Boxes (Post Office Boxes); GPO Boxes (General Post Office Boxes, in the middle of capital cities only); locked bags; private bags; parcel lockers; parcel collect; “Care of Post Office”; CMA (Community Mail Agent); CPA (Community Postal Agent); CMB (Community Mail Bag) and Mail Service (MS)!
Tibor Schütz points out many post offices have novelty handling of mail to Santa Claus, even going as far as to allocate special postcodes. For example, in Germany: Santa Claus Nordpolen, Julemandes Postkontor, DK-3900 Nuuk; in Canada: Santa Claus, North Pole, H0H 0H0; in the UK: Father Christmas, Santa's Grotto, Reindeerland, XM4 5HQ
An address can be expressed with a single country
Matthieu Valleton got in touch to point out his address on Kerguelen Island (
Google Map), a French territory in the Indian Ocean, his address was District de Kerguelen (island), Terres Australes et Antarctiques Françaises (territory), via la Réunion (indicates where the mail should be routed through), France (country)
Overseas territories aren't (or are) always included in the postal code system
Monty points out that uncommon political hierarchies can lead to uncommon postal addresses. For example, the entire of the Falkland Islands shares postal code FIQQ 1ZZ. On the other hand, the British Virgin Islands have their own postal code system.
All addresses with a box number are PO Boxes
David Kuder pointed me to a 1990 article: Risks Digest correspondent
Tim Kay had problems getting mail sent to his university campus pigeon hole: Timothy L. Kay, Box 256-80, Pasadena, CA 91125. Reportedly automatic systems changed his zip code to 91102.
David Kuder identified this was because all Pasadena PO Boxes were in box 91102.
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
Alastair Houghton provided this example of a Japanese address: 〒100-8994 (zip code), 東京都 (Tokyo-to, i.e. Tokyo prefecture or state) 中央区 (Chuo-ku, i.e. Chuo Ward) 八重洲一丁目 (Yaesu 1-chome, i.e. Yaesu district 1st subdistrict) 5番3号 (block 5 lot 3), 東京中央郵便局 (Tokyo Central Post Office). Thanks to Norman Diamond for telling me which parts of the address are which!
OK, but they'll either be in either ascending or descending specificity
Erik Engheim and Jan Jongboom report in Norway and the Netherlands the building number (within street) comes after the street name, but before the town name.
Douglas Perreault reports units within American condo associations may be written below the street name. For example: 14100 (position of condo association on street) N 46th St. (street name), Alpha (block within condo association) 39 (unit within block), Lutz (city), FL (state) 33549 (zip). Likewise, when mailing an individual at a company some people put the person's name after the company name, but before the street name.
OK, but at least the same address will always be written in the same order
György Farkas tells me Hungarian addresses can be written in different orders depending on how many lines are available. If you write the address on one line, it's expressed from less specific to more specific:
{zip} {town}, {street} {buildingNr}.
If there are more lines available, the address starts with the street, and if the country is specified, it comes after the town name:
Gene Wirchenko tells me in some parts of Canada, suite 123 in building 456 on TheStreet would be written: 123 456 TheStreet whereas in other parts the common formatting is 456 TheStreet #123
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
Toni Cornelissen points out addresses in the The Netherlands, such as: Vroomstraat 1a Rood, 2021HL Haarlem where Vroomstaat is the street, 1a is the building number, and Rood (literally translated as Red) indicates the upper part of the building.
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
Lots of examples of this. For example: The National Museum of Computing, Bletchley Park, Sherwood Drive, Bletchley, Milton Keynes, MK3 6EB.
70m from Roche Gardens, 346m from Sherwood Drive, but only accessible by entering Bletchley Park from Sherwood Drive.
Real place names won't contain rude words
A customer will only want reminders mailed to single address
Each person has exactly one address