This dataset lists British unit postcodes across England, Scotland and Wales (Great Britain only; Code-Point Open does not cover Northern Ireland), with coordinates and administrative geography (country / district / ward, plus the county in two-tier areas of England).
Column definitions, row count, size and last-updated date are in datapackage.yaml.
Changes made to the source data: grid coordinates (British National Grid) converted to WGS84 latitude and longitude at 6 decimals; district, ward and county names joined on GSS code from the ONS lookups; place name set to the nearest GeoNames populated place; postcodes with positional quality 90 have blank coordinates and place name instead of 0,0.
Not endorsed by, or affiliated with, Ordnance Survey, Royal Mail, the Office for National Statistics or GeoNames.
Known limitations
Great Britain only: Northern Ireland is not covered.
Postcodes with OS positional quality 90 have no coordinate, so latitude, longitude and place_name are blank for them rather than estimated.
The county columns are populated only for two-tier areas of England; single-tier authorities (Scotland, Wales and unitary English authorities) correctly have no county value.
place_name is the nearest GeoNames populated place to the postcode coordinate, not an official postal town.
alternative_city_name is always empty.
Usage
The dataset files are available in CSV format and can be accessed and downloaded using
the links provided in datapackage.yaml. Read postal_code as text (dtype=str): British postcodes mix letters, digits and a space (AB10 1WS).