[Talk-GB] UPRN to postcode lookup

Rob Nickerson rob.j.nickerson at gmail.com
Sat Jul 3 12:15:02 UTC 2021

Hi all,

I have made a layer of the NSUL postcode data which is available in JOSM,
iD along with other editors. I've tested this in JOSM so here are the
instructions for that:

Imagery -> Imagery Preferences...
Click the "+WMTS" button
In box 2 paste this URL:
Tick the Set Default Layer checkbox and then click "3. Get Layers"
Select the postcodes layer and type a suitable layer name in box 4 (e.g.
"Postcodes (NSUL)")
Click Ok

The layer can now be added the same way you add aerial imagery layers in

P.S. For those who want to experiment: I see that JOSM now supports Mapbox
Vector Tile (MVT) layers. You can try this by adding the following layer to
JOSM: mvt:
Please note that I have not yet worked out how to add a style to these MVT
layers so all you get is the point locations. However you can right click
the layer in the layer menu and click "Convert to OSM Data" which is pretty

P.P.S If style changes are of use, please let me know. Also happy to give
copies of my process / any output files.

Happy mapping,

On Thu, 1 Jul 2021 at 21:03, Rob Nickerson <rob.j.nickerson at gmail.com>

> Hi all,
> I was reading the latest (always detailed and helpful) blog post by Owen
> Boswarva today on addresses [1]. One thing that it mentioned that I was not
> aware of was that there is a lookup between Unique Property Reference
> Numbers (UPRNs) and Postcodes:
> "National datasets of UPRNs matched to postcode units and statistical
> geographies are available as open data in ONS's National Statistics
> Address Lookup
> <https://geoportal.statistics.gov.uk/search?collection=Dataset&sort=name&tags=all(PRD_NSUL)>
> (NSUL) and ONS UPRN Directory
> <https://geoportal.statistics.gov.uk/search?collection=Dataset&sort=name&tags=all(PRD_ONSUD)>
> (ONSUD). From late 2020 those datasets also associate UPRNs with postcodes,
> enabling the calculation of notional geographic extents for individual
> postcode units."
> Has anyone had a look at this? Do we think the licence is sufficiently
> "open" for OpenStreetMap use?
> To save you downloading a huge file, I have downloaded the April 2021 NSUL
> and extracted 10 entries from the North East along with the manual. This
> can be downloaded from the OSM UK site [2]. I also have a bash script for
> processing the data and am happy to share that or the resultant file
> (Lat/Lon/Postcode csv) with you.
> [1] https://www.owenboswarva.com/blog/post-addr3.htm
> [2] https://osmuk.org/wp-content/uploads/2021/06/NSUL_Apr_2021_extract.zip
> Thank you,
> *Rob*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/talk-gb/attachments/20210703/9f67e8fb/attachment.htm>

More information about the Talk-GB mailing list