UK address data modelling
UK Post Town vs City and County Fields
A post town is a postal routing element, while a city, locality and administrative county describe different geographic or user-facing concepts. Treating them as interchangeable creates fragile forms and misleading data.
By PostcodeLab · Published · Updated
Post town is a postal field
A post town belongs to the postal address used for routing. It does not necessarily match the geographically nearest town, a local authority name or an administrative boundary. National Records of Scotland describes the post town as a mandatory element in the Royal Mail Postal Address File and notes that it may differ from the nearest town or administrative geography.
For that reason, store the post town returned by an authoritative address source instead of deriving it from a map label or asking a user to translate it into an administrative area. A familiar village or suburb can appear as a dependent locality while a different place supplies the post town.
Use a clear town or city field in manual forms
The GOV.UK Design System address pattern labels the manual-entry field “Town or city”, uses the browser autocomplete token address-level2, and shows county as optional. That user-facing label is often easier to understand than “post town”, especially when a form also accepts international addresses.
If a postcode lookup returns structured postal data, keep the provider's post-town value in the postal model. If the user enters an address manually, preserve the value they supply and avoid silently replacing it with a geocoder's preferred city label.
County is usually optional for postal entry
A county can be useful for legacy integrations, reporting or administrative geography, but a generic UK address form should not make it mandatory without a documented need. Postal counties, ceremonial counties and current administrative areas are not one stable interchangeable field.
When a downstream system genuinely requires a county or local authority, name the exact concept in the schema and record its source. Do not infer that value from the post town alone. ONS postcode products can link postcodes to administrative geographies, but a postcode that crosses a boundary is assigned using a representative grid reference, so the result still has a defined analytical limitation.
Recommended storage model
| Field | Purpose | Implementation note |
|---|---|---|
address_line_1 | Premises and street | Required only when the product needs separated lines |
address_line_2 | Sub-building or locality | Optional and long enough for real variation |
post_town | Postal routing element | Preserve the lookup or user-supplied value |
postcode | Postal code | Store normalised and separately from town |
administrative_area | Named geographic area | Optional; attach a type, code, source and date |
country_code | Country identity | Use a stable code internally |
Keep a formatted display address or the original user entry when exact reproduction matters. Structured components can support search and integrations, but they should not destroy meaningful text that does not fit the chosen model.
Test the boundaries between fields
- A village or district that differs from the post town.
- A post town that differs from a geocoder's city label.
- An address submitted with no county.
- A legacy record containing a historic or postal county.
- A postcode mapped to an administrative area for analysis rather than delivery.
- Manual entry after a lookup returns no result.
- An international address where UK post-town rules do not apply.
Verify labels, API mappings, database columns, CRM exports and printed output. A field named city in one integration may mean post town, locality or administrative city in another, so document the translation rather than assuming the names are equivalent.
Official references
Related developer guides
UK Address Format: Correct Order and Examples
See the correct UK address format for houses, flats and named buildings, with postcode placement and line-by-line examples for UK and international use.
Read guideUK Address Lookup and Autocomplete Guide
Design a resilient UK address lookup and autocomplete flow with postcode search, editable results, manual entry, accessibility and provider safeguards.
Read guideUK Address Form Test Cases and QA Checklist
Use practical UK address form test cases for field variation, postcodes, lookup failure, accessibility, mobile layouts, exports and integration safety.
Read guideUK Postcode Format and Validation Guide
Understand UK postcode structure, outward and inward codes, normalisation, syntax validation, lookup checks and practical QA test cases.
Read guide