Postal Address
The everyday string that tells a carrier where to deliver mail, far less regular than forms assume, with postal codes that are delivery routes rather than areas, and a long list of countries and people that don't fit the standard fields.
A postal address tells a carrier where to deliver something. It looks like simple structured data, a path from country down to building, but addresses are among the most irregular data that software routinely collects.
The usual model is a hierarchy: country, region, city, street, number, and unit. Real addresses break it in many ways:
- Order differs. Many countries write small to large, house before street before city; Japan and China write from large to small.
- Streets aren't always the key. Most Japanese addresses number city blocks and buildings, not streets, and many streets have no names.
- Many places lack formal addresses. Rural areas and informal settlements often rely on landmarks, and directions in Costa Rica traditionally count meters from a known building.
- Fields vary. Some countries have no states or provinces, and some have no postal codes.
Postal codes were added to speed sorting. Germany introduced numbered postal zones in 1941; the US ZIP Code, for Zone Improvement Plan, arrived in 1963, and nine-digit ZIP+4 codes in 1983; the UK rolled out alphanumeric postcodes nationwide between 1959 and 1974; and Ireland had almost none outside Dublin until it launched Eircode in 2015, giving each address its own code. A US ZIP code is a set of delivery routes, not an area with a boundary; it can cross county or state lines, and one large building can have its own. The Census Bureau builds approximate areas for them precisely because ZIP codes don't define any.
For anyone designing a form or schema:
- Ask for the country first, then show the fields that country uses.
- Prefer address lines to rigidly split fields, and don't require a state or postal code where none exists.
- Accept any script, and store text in a universal encoding; see Character Encoding.
- Offer lookup as the user types, which fixes spelling; see Autocomplete.
- Verify against postal data when delivery matters, rather than inventing regex rules.
Addresses are also a common key for matching records about the same household or property, but the same place can be written many ways, so matching needs standardization first. Converting them to coordinates is a separate step.
Mail that can't be delivered goes to a dead letter office, a name software borrowed for undeliverable messages. Email took the word "address" too, writing its two parts as person at domain.
People without a fixed address, including those who are homeless, often struggle to open bank accounts or receive benefits, a reminder that the field encodes who a system assumes its users are.
See also2
Phone Number
The international numbering scheme for telephones, E.164, and the many ways phone numbers break software that treats them as simple integers or as stable proofs of identity.
Data & Content7 connections
Country Code
The standard two- and three-letter codes for countries and territories maintained under ISO 3166, used in software, addresses, domain names, and flags, and a steady source of edge cases because borders, names, and recognition change.
Data & Content4 connections
Linked from4
- AutocompleteData & Content
Suggesting completions while someone types, which needs prefix-friendly indexes, ranking by likely intent, and careful handling of latency, typos, and accessibility.
- Country CodeData & Content
The standard two- and three-letter codes for countries and territories maintained under ISO 3166, used in software, addresses, domain names, and flags, and a steady source of edge cases because borders, names, and recognition change.
- Date PickerDesign & Interface
An interface control for entering a date, usually a calendar grid, which suits booking next week's appointment and frustrates anyone entering a birthday, with time zones and regional formats hiding classic bugs underneath.
- Phone NumberData & Content
The international numbering scheme for telephones, E.164, and the many ways phone numbers break software that treats them as simple integers or as stable proofs of identity.