Facebook
Twitterhttps://www.ons.gov.uk/methodology/geography/licenceshttps://www.ons.gov.uk/methodology/geography/licences
This is the ONS Postcode Directory (ONSPD) for the United Kingdom as at February 2023 in Comma Separated Variable (CSV) and ASCII text (TXT) formats. This file contains the multi CSVs so that postcode areas can be opened in MS Excel. To download the zip file click the Download button. The ONSPD relates both current and terminated postcodes in the United Kingdom to a range of current statutory administrative, electoral, health and other area geographies. It also links postcodes to pre-2002 health areas, 1991 Census enumeration districts for England and Wales, 2001 Census Output Areas (OA) and Super Output Areas (SOA) for England and Wales, 2001 Census OAs and SOAs for Northern Ireland and 2001 Census OAs and Data Zones (DZ) for Scotland. It now contains 2021 Census OAs and SOAs for England and Wales. It helps support the production of area based statistics from postcoded data. The ONSPD is produced by ONS Geography, who provide geographic support to the Office for National Statistics (ONS) and geographic services used by other organisations. The ONSPD is issued quarterly. (File size - 234 MB)NOTE: The 2022 ONSPDs included an incorrect update of the ITL field with two LA changes in Northamptonshire. This error has been corrected from the February 2023 ONSPD.NOTE: There was an issue with the originally published file where some change orders yet to be included in OS Boundary-LineÔ (including The Cumbria (Structural Changes) Order 2022, The North Yorkshire (Structural Changes) Order 2022 and The Somerset (Structural Changes) Order 2022) were mistakenly implemented for terminated postcodes. Version 2 corrects this, so that ward codes E05014171–E05014393 are not yet included. Please note that this product contains Royal Mail, Gridlink, LPS (Northern Ireland), Ordnance Survey and ONS Intellectual Property Rights.
Facebook
Twitterhttps://www.ons.gov.uk/methodology/geography/licenceshttps://www.ons.gov.uk/methodology/geography/licences
This file contains the National Statistics Postcode Lookup (NSPL) for the United Kingdom as at May 2022 in Comma Separated Variable (CSV) and ASCII text (TXT) formats. To download the zip file click the Download button. The NSPL relates both current and terminated postcodes to a range of current statutory geographies via ‘best-fit’ allocation from the 2011 Census Output Areas (national parks and Workplace Zones are exempt from ‘best-fit’ and use ‘exact-fit’ allocations). It supports the production of area based statistics from postcoded data. The NSPL is produced by ONS Geography, who provide geographic support to the Office for National Statistics (ONS) and geographic services used by other organisations. The NSPL is issued quarterly. (File size - 196 MB).
Facebook
TwitterBy GetTheData [source]
The underlying source material has been compiled from open datasets including 'Risk of Flooding from Rivers and Sea', 'Open Postcode Geo' - all held under licence in agreement with Crown copyright & Database right (2017) & Royal Mail copyright & Database right (2017). The methodology used would combine each one of these datasets points into polygons with first identifying each risk area then mapping out corresponding postcode points within them which then could be tracked for its related longitude, latitude easting and northing positions. Through this comprehensive process you could get a better understanding regarding what individual postcodes are within high & low level flooding areas as well as find out from the latest publication date - when was it last issued? Ultimately this profound dataset comes in handy for prevention or even planning purposes informing citizens how serious some situations could become during extreme weather events such as floods or major storms allowing them to estimate potential risks before disaster ensues!
For more datasets, click here.
- 🚨 Your notebook can be here! 🚨!
In order to effectively use this dataset there are several key pieces of terminology that you should be familiar with:
- FID – a unique identifier number associated with each record in the database.
- Postcode – an alphanumeric code used to identify a specific geographic region within the country; consists of two parts: an outward code (e.g., RG4) and an inward code (e.g., 8DN).
- PROB_4BAND – The flood risk level based on four categories represented in this field assigned by location - High, Medium, Low or Very Low; or None if outside of a high-risk area
- SUITABILITY – The suitability rating determined by location; either suitable or not suitable for development based on constraints for building in a floodplain
- Publication Date(PUB DATE) - The date that this information was made publicly available
Risk For Insurance SOP (Risk_For_Insurance_SOP) - A ranking system from 1-5 used as guidance only when offering advice before taking out insurance cover over certain property located in certain very extreme area
You will also need to be aware of some mathematical values associated with each postcode:
Easting – An eastward grid coordinate reference point corresponding to determining latitude/ longitude coordinates at specified points along an arc created by measuring distances between two other known points
Northing– A northward grid coordinate reference forming part of a geographical survey’s grid system
Finally, here is how you can get started working with this amazing dataset:
Download it onto your computer from Kaggle's website (www.kaggle/datasets/UK Postecode Level Flood Risk Data).
2
- Creating a custom application that provides users with real-time flood risk and safety advice based on postcode.
- Developing a map-based interface that integrates flood risk levels directly into Google Maps to assist people in planning trips and relocating in safer areas.
- Developing an app that tracks the geographically accurate position of every property within each postcode, allowing for better risk assessment for businesses and insurers
If you use this dataset in your research, please credit the original authors. Data Source
See the dataset description for more information.
File: open_flood_risk_by_postcode.csv | Column name | Description | |:--------------|:--------------------------------| | TR23 0PR | Postcode area (String) | | \N | FID (Integer) | | None | PROB_4BAND (String) | | \N.1 | SUITABILITY (String) | | \N.2 | PULD_DATE (Date) | | \N.3 | RISK_FOR_INSURANCE_SOP (String) | | 87897 | Easting (Integer) | | 15021 | Northing (Integer) | | 49.953605 | Latitude (Float) | | -6.352647 | Longitude (Float) |
If you use this dataset in your research, please credit the original authors. If you use this dataset in your research, please credit GetTheData.
Facebook
Twitterhttps://www.ons.gov.uk/methodology/geography/licenceshttps://www.ons.gov.uk/methodology/geography/licences
A lookup between postcodes and postcode sectors, postcode districts and postcode areas as at March 2021 in England and Wales (File size 5MB).
Facebook
TwitterCC0 1.0 Universal Public Domain Dedicationhttps://creativecommons.org/publicdomain/zero/1.0/
License information was derived automatically
This is the ONS Postcode Directory (ONSPD) for the United Kingdom as at February 2025 in Comma Separated Variable (CSV) and ASCII text (TXT) formats. This file contains the multi CSVs so that postcode areas can be opened in MS Excel. To download the zip file click the Download button. The ONSPD relates both current and terminated postcodes in the United Kingdom to a range of current statutory administrative, electoral, health and other area geographies. It also links postcodes to 2001 Census Output Areas (OA) and Super Output Areas (SOA) for England and Wales, 2001 Census OAs and SOAs for Northern Ireland and 2001 Census OAs and Data Zones (DZ) for Scotland. It also contains 2021 Census OAs and SOAs for England, Wales and Northern Ireland and 2021 Census OAs DZs and Intermediate Zones (IZ) for Scotland. It helps support the production of area-based statistics from postcoded data. The ONSPD is produced by ONS Geography, who provide geographic support to the Office for National Statistics (ONS) and geographic services used by other organisations. The ONSPD is issued quarterly. (File size - 234 MB) Please note that this product contains Royal Mail, Gridlink, LPS (Northern Ireland), Ordnance Survey and ONS Intellectual Property Rights.
Facebook
TwitterYou might also find reference data on area cost uplifts and disadvantage uplift factors to use with funding calculations useful.
We use this data in the funding system to support publicly funded education and skills in England. This covers the adult skills fund, both in devolved and non-devolved areas.
The guidance document accompanying the data file explains how we use this data and what you can do with it to aid your enrolment of learners, and creation of individualised learner record data.
The complete ASF postcode dataset is too large for you to open conventionally in spreadsheet software. You can load this file into a database or BI software to query the whole dataset.
To allow you to view the data in a spreadsheet, we have split the complete ASF postcode dataset into several spreadsheet readable csv files.
This file contains just the postcodes from the complete ASF postcode file that fall within devolved authority areas.
This file contains all postcodes from the complete ASF postcode file that begin with the letters A to K, including all Department for Education (DfE) funded, devolved authority funded and non-funded British (Welsh and Scottish) postcodes.
This file contains all postcodes from the complete ASF postcode file that begin with the letters L to R, including all DfE funded, devolved authority funded and non-funded British (Welsh and Scottish) postcodes.
This file contains all postcodes from the complete ASF postcode file that begin with the letters S to Z, including all DfE funded, devolved authority funded and non-funded British (Welsh and Scottish) postcodes.
Facebook
TwitterThis is the ONS Postcode Directory (ONSPD) for the United Kingdom as at February 2022 in Comma Separated Variable (CSV) and ASCII text (TXT) formats. This file contains the multi CSVs so that postcode areas can be opened in MS Excel. To download the zip file click the Download button. The ONSPD relates both current and terminated postcodes in the United Kingdom to a range of current statutory administrative, electoral, health and other area geographies. It also links postcodes to pre-2002 health areas, 1991 Census enumeration districts for England and Wales, 2001 Census Output Areas (OA) and Super Output Areas (SOA) for England and Wales, 2001 Census OAs and SOAs for Northern Ireland and 2001 Census OAs and Data Zones (DZ) for Scotland. It helps support the production of area based statistics from postcoded data. The ONSPD is produced by ONS Geography, who provide geographic support to the Office for National Statistics (ONS) and geographic services used by other organisations. The ONSPD is issued quarterly. (File size - 212 MB)Please note that this product contains Royal Mail, Gridlink, LPS (Northern Ireland), Ordnance Survey and ONS Intellectual Property Rights.
Facebook
TwitterAttribution 4.0 (CC BY 4.0)https://creativecommons.org/licenses/by/4.0/
License information was derived automatically
This dataset includes a series of modified UK administrative boundary shapefiles based on the 2011 census which are intended for use in more accurate visualisation of UK geospatial data analysis. There are two key features of these shapefiles: (1) administrative shapes have been clipped to the Ordnance Survey buildings shapefile, so that in choropleth visualisations relating to demographic data filled spaces represent populated areas of the UK rather than large undifferentiated blocks. (2) Shapefiles have been simplified to reduce loading and processing time, in the case of this repository at 100m. After testing, we have settled on a procedure to render buildings layer visually comprehensible at high zoom levels, by adding a small buffer, dissolving (so that individual overlapping shapes combine into a single more easily visualised shape) and then simplifying at 150m. It is important to emphasise that because of the use of simplification (using a Ramer–Douglas–Peucker algorithm), these shapefiles are not suitable for analysis as boundaries may not be suitably precise or accurate. For users interested in the process used to generate these files you can consult the codebase deposited on github.
Many thanks to colleagues including Alasdair Rae for recommendations on technique used here. Computations were performed using the University of Birmingham's BEAR Cloud service, which provides flexible resource for intensive computational work to the University's research community. See http://www.birmingham.ac.uk/bear for more details. Given the massive size of datasets involved (including the district buildings vector shapefile which is 1.4gb and consists of hundreds of thousands of individual shapes), this work would have been impossible without this invaluable resource. I hope that these files will be of use to colleagues who may not have access to similar large computational arrays and make the process of visualising UK boundary and census data more accurate and efficient.
Original files are under OGLv3 licenses. Derived data files, where possible are licensed for use under CC BY 4.0.
Files include the following:
Original unmodified data:
infuse_ctry_2011.zip - original country level shapes, based on 2011 census, downloaded from https://borders.ukdataservice.ac.uk/ukborders/easy_download
infuse_dist_lyr_2011.zip - original local authority shapes, based on 2011 census, downloaded from https://borders.ukdataservice.ac.uk/ukborders/easy_download
TermsAndConditions.html - UK Data Service license details (OGLv3), applies to all the above
GB_Postcodes.zip - UK postcode district shapes, prepared by Addy Pope, https://datashare.ed.ac.uk/handle/10283/2597
Derived data files:
OS_Open_Zoomstack_district_buildings.zip - buildings layer extracted from Ordnance Survey Zoomstack package, licensed under OGLv3 and exported to gpkg format.
*_simplified_100m.gpkg - Administrative shapes from above, simplified in R at a resolution of 100 metres.
*_simplified_100m_buildings_overlay_simplified.gpkg - Administrative shapes from above, simplified in R at a resolution of 100 metres, and then clipped to the buildings layer.
*_simplified_100m_buildings_overlay_simplified.gpkg - Administrative shapes from above, simplified in R at a resolution of 100 metres, and then run against the buildings layer as a difference layer. Suitable for using as an overlay as the shapes are inverse.
Users who wish to use these shapefiles in a reproducible research context may want to download individual files directly from this repository. To do so, you could use the following R code:
require(sf) # load simplefeature data class, supercedes sp() and used for st_read
require(ragg)
if (dir.exists("data") == FALSE) { dir.create("data") }
if (file.exists("data/infuse_dist_lyr_2011.shp") == FALSE) { download.file("https://borders.ukdataservice.ac.uk/ukborders/easy_download/prebuilt/shape/infuse_dist_lyr_2011.zip", destfile = "data/infuse_dist_lyr_2011.zip") unzip("infuse_dist_lyr_2011.zip", exdir = "data")} local_authorities <- st_read("data/infuse_dist_lyr_2011.shp")
Facebook
TwitterThis file contains the centroids of the latest (February 2020) National Statistics Postcode Lookup (NSPL) for the United Kingdom. Persistent URL for CSV - http://geoportal.statistics.gov.uk/datasets/055c2d8135ca4297a85d624bb68aefdb_0.csv (File Size - 923 MB)N.B. This file is intended to be downloaded as a CSV spreadsheet. It is TOO LARGE to be downloaded as a shapefile.REST URL of ArcGIS for INSPIRE View Service – https://ons-inspire.esriuk.com/arcgis/rest/services/Postcodes/NSPL_Latest/MapServer/exts/InspireView REST URL of ArcGIS for INSPIRE Feature Download Service – https://ons-inspire.esriuk.com/arcgis/rest/services/Postcodes/NSPL_Latest/MapServer/exts/InspireFeatureDownload
Facebook
Twitterhttps://www.ons.gov.uk/methodology/geography/licenceshttps://www.ons.gov.uk/methodology/geography/licences
This User Guide contains information about the ONSPD including: directory content; data currency; the methodology for assigning areas to postcodes; data formats; data quality and limitations and details of recent changes that have impacted on the data. Various annexes and tables provide more detailed supporting information. The download includes PDF and ODT versions of the user guide. (File size - 830 KB)
Facebook
TwitterData is available for:
Economy 7 is for customers that have an additional off-peak electricity period. Typically customers have a 7 hour off-peak period at night when their electricity is cheaper.
Please read the accompanying notes before using the statistics.
Facebook
Twitter2021 postcode level gas consumption statistics in .csv format.
Please read the accompanying guidance before using these statistics.
Facebook
Twitter2018 postcode level gas consumption statistics in .csv format.
Please read the accompanying guidance before using these statistics.
Facebook
Twitter2017 postcode level gas consumption statistics in .csv format.
Please read the accompanying guidance before using these statistics.
Facebook
TwitterAttribution 4.0 (CC BY 4.0)https://creativecommons.org/licenses/by/4.0/
License information was derived automatically
This data set is a collection of estimated daily mean and maximum values for a range of air quality and meterological measurements and model forecasts for the UK and crown dependencies postcode districts (e.g. 'AB') for the years 2016-2019, inclusive.
The paper describing this dataset is available here: https://www.nature.com/articles/s41597-022-01135-6
The data uses a 'concentric regions' method to estimate the measurement for all regions, as follows. If measurements exist within the region, the mean of those measurements is used, if not, then a ring of neighbouring postcode regions are selected, and the mean of their measurement values used. If no measurement sites/data are found in the first ring, the process continues, taking the next ring of postcode district regions, working outwards until one or more sensors are found in a ring. As well as the measurement estimations, the number of rings required to find site data and make the estimations is also published. As a result, please note that estimations with higher ring counts ('rings') are likely to be calculated from more distant sensors. This distance depends upon the size of the postcode regions surrounding the location being estimated. Please use the ring count ('rings') to limit/filter estimations based on your required level of confidence.
The meteorological, pollen and air quality measurement data used to make the regional estimations can be found at this Zenodo archive. The data there contains Temperature, Relative Humidity, and Pressure data, downloaded from the Met Office MIDAS archives via the MEDMI server (https://www.data-mashup.org.uk/). Also downloaded from the MEDMI server are daily pollen measurements for the UK. PM10, PM2.5, NO2, NOx (as NO2), O3, and SO2 measurements from the DEFRA AURN network, and also model forecasts of the same made using the EMEP model.
The code used to make the estimations is available at this Zenodo archive.
The postcode data in postcode_district_data.csv are collated from several sources:
https://www.doogal.co.uk/UKPostcodes.php (population figures for the UK (UK Census 2011))
https://www.freemaptools.com/download-uk-postcode-outcode-boundaries.htm (postcode boundary polygons for UK and crown dependancies)
https://www.gov.gg/population (Guernsey (GY) population data for end June 2020)
https://www.gov.je/Government/JerseyInFigures/Population/Pages/Population.aspx (Jersey (JE) population data for end 2019)
https://www.gov.im/media/1369690/isle-of-man-in-numbers-july-2020.pdf (Isle of Man (IM) population data for April 2016)
The data-set is presented in CSV format, as six files:
postcode_district_data.csv: location metadata (region_id, geometry, description, population, country)
regional_site_counts.csv: a table showing the number of sites for each measurement (columns), for each region_id (rows). region_id's match those in the postcode_district_data.csv file.
turing_regional_estimates_aq_daily_met_pollen_pollution_imputed_data.csv: uses imputed site data (timestamp, region_id, ...[measurement name, rings]) ('rings' is the number of rings required to make the estimation)
turing_regional_estimates_aq_daily_met_pollen_pollution_original_data.csv: uses original site data (timestamp, region_id, ...[measurement name, rings]) ('rings' is the number of rings required to make the estimation)
turing_regional_estimates_aq_loc_type_daily_imputed_data.csv: uses imputed site data. Air quality regional estimates are calculated using specific AQ site location types* separately. (To prevent, for example, 'Traffic Urban' type sites being used to estimate 'non-traffic' or rural regions.)
turing_regional_estimates_aq_loc_type_daily_original_data.csv: uses original data. Air quality regional estimates are calculated using specific AQ site location types* separately. (To prevent, for example, 'Traffic Urban' type sites being used to estimate 'non-traffic' or rural regions.)
Industrial: comprises 'urban industrial' (9 sites) and suburban industrial (2 sites)
'Rural background' (14 sites)
'Urban background' (48 sites)
'Urban traffic' (47 sites)
Facebook
TwitterData is available for:
Economy 7 is for customers that have an additional off-peak electricity period, typically customers have a 7 hour off-peak period at night when their electricity is cheaper.
Please read the accompanying notes before using the statistics.
Facebook
Twitterhttps://www.ons.gov.uk/methodology/geography/licenceshttps://www.ons.gov.uk/methodology/geography/licences
This is the ONS Postcode Directory (ONSPD) for the United Kingdom as at February 2023 in Comma Separated Variable (CSV) and ASCII text (TXT) formats. This file contains the multi CSVs so that postcode areas can be opened in MS Excel. To download the zip file click the Download button. The ONSPD relates both current and terminated postcodes in the United Kingdom to a range of current statutory administrative, electoral, health and other area geographies. It also links postcodes to pre-2002 health areas, 1991 Census enumeration districts for England and Wales, 2001 Census Output Areas (OA) and Super Output Areas (SOA) for England and Wales, 2001 Census OAs and SOAs for Northern Ireland and 2001 Census OAs and Data Zones (DZ) for Scotland. It now contains 2021 Census OAs and SOAs for England and Wales. It helps support the production of area based statistics from postcoded data. The ONSPD is produced by ONS Geography, who provide geographic support to the Office for National Statistics (ONS) and geographic services used by other organisations. The ONSPD is issued quarterly. (File size - 234 MB)NOTE: The 2022 ONSPDs included an incorrect update of the ITL field with two LA changes in Northamptonshire. This error has been corrected from the February 2023 ONSPD.NOTE: There was an issue with the originally published file where some change orders yet to be included in OS Boundary-LineÔ (including The Cumbria (Structural Changes) Order 2022, The North Yorkshire (Structural Changes) Order 2022 and The Somerset (Structural Changes) Order 2022) were mistakenly implemented for terminated postcodes. Version 2 corrects this, so that ward codes E05014171–E05014393 are not yet included. Please note that this product contains Royal Mail, Gridlink, LPS (Northern Ireland), Ordnance Survey and ONS Intellectual Property Rights.
Facebook
Twitterhttps://www.ons.gov.uk/methodology/geography/licenceshttps://www.ons.gov.uk/methodology/geography/licences
This file contains the 'Full' NHS Postcode Directory (NHSPD) as at February 2022. The NHSPD relates both current and terminated postcodes in the United Kingdom to a range of current statutory administrative, electoral, health and other geographies. It also links postcodes to pre-2002 health areas and both 2001 Census and 2011 Census Output Areas and Super Output Areas. The NHSPD is issued quarterly. For further technical information about this file, please refer to the User Guide contained within the downloadable zip file. Please note that this product contains Royal Mail, Gridlink, LPS (Northern Ireland), Ordnance Survey and ONS Intellectual Property Rights. (File Size - 109 MB)
Facebook
Twitterhttps://www.ons.gov.uk/methodology/geography/licenceshttps://www.ons.gov.uk/methodology/geography/licences
This is the ONS Postcode Directory (ONSPD) for the United Kingdom as at November 2016 in Comma Separated Variable (CSV) and ASCII text (TXT) formats. This file contains the multi CSVs so that postcode areas can be opened in MS Excel. To download the zip file click the Download button. The ONSPD relates both current and terminated postcodes in the United Kingdom to a range of current statutory administrative, electoral, health and other area geographies. It also links postcodes to pre-2002 health areas, 1991 Census enumeration districts for England and Wales, 2001 Census Output Areas (OA) and Super Output Areas (SOA) for England and Wales, 2001 Census OAs and SOAs for Northern Ireland and 2001 Census OAs and Data Zones (DZ) for Scotland. It helps support the production of area based statistics from postcoded data. The ONSPD is produced by ONS Geography, who provide geographic support to the Office for National Statistics (ONS) and geographic services used by other organisations. The ONSPD is issued quarterly. Please note that this product contains Royal Mail, Gridlink, LPS (Northern Ireland), Ordnance Survey and ONS Intellectual Property Rights
Facebook
Twitterhttps://www.ons.gov.uk/methodology/geography/licenceshttps://www.ons.gov.uk/methodology/geography/licences
This User Guide contains information about the NHSPD including: directory content; data currency; the methodology for assigning areas to postcodes; data formats; data quality and limitations and details of recent changes that have impacted on the data. Various annexes and tables provide more detailed supporting information. The download includes PDF and ODT versions of the user guide. (File size - 650 KB)
Facebook
Twitterhttps://www.ons.gov.uk/methodology/geography/licenceshttps://www.ons.gov.uk/methodology/geography/licences
This is the ONS Postcode Directory (ONSPD) for the United Kingdom as at February 2023 in Comma Separated Variable (CSV) and ASCII text (TXT) formats. This file contains the multi CSVs so that postcode areas can be opened in MS Excel. To download the zip file click the Download button. The ONSPD relates both current and terminated postcodes in the United Kingdom to a range of current statutory administrative, electoral, health and other area geographies. It also links postcodes to pre-2002 health areas, 1991 Census enumeration districts for England and Wales, 2001 Census Output Areas (OA) and Super Output Areas (SOA) for England and Wales, 2001 Census OAs and SOAs for Northern Ireland and 2001 Census OAs and Data Zones (DZ) for Scotland. It now contains 2021 Census OAs and SOAs for England and Wales. It helps support the production of area based statistics from postcoded data. The ONSPD is produced by ONS Geography, who provide geographic support to the Office for National Statistics (ONS) and geographic services used by other organisations. The ONSPD is issued quarterly. (File size - 234 MB)NOTE: The 2022 ONSPDs included an incorrect update of the ITL field with two LA changes in Northamptonshire. This error has been corrected from the February 2023 ONSPD.NOTE: There was an issue with the originally published file where some change orders yet to be included in OS Boundary-LineÔ (including The Cumbria (Structural Changes) Order 2022, The North Yorkshire (Structural Changes) Order 2022 and The Somerset (Structural Changes) Order 2022) were mistakenly implemented for terminated postcodes. Version 2 corrects this, so that ward codes E05014171–E05014393 are not yet included. Please note that this product contains Royal Mail, Gridlink, LPS (Northern Ireland), Ordnance Survey and ONS Intellectual Property Rights.