[Talk-GB] UPRN to postcode lookup

Cj Malone me-osm-talk-gb at keepawayfromfire.co.uk
Thu Jul 1 22:39:48 UTC 2021


I believe this data to be sufficiently open for use in OSM. While I
don't believe they got the postcodes from Code-Point Open, they do
mention that they worked with OS to insure no postcodes were released
that isn't included in Code-Point Open. I believe both OS and ONS are
fully consciously publishing uprn -> postcode under the OGLv3 and that
this isn't one of the OGL "open but not" gotchas.

While I hadn't considered Jerry system to infer house numbers, this is
an important point as now the vast majority of an address is Open.

OS Open UPRN gives us locations.
OS Open USRN, OS Open Names and OS Open Linked Identifiers give us
street names. (Usually, there is some quality issues here)
ONS gives us a perfect postcode. (nolonger, educated guesses from Code-
Point Open)
City/Local authority can also be calculated.

As Jerry also said, we can trim OS Open UPRN by buildings from OS Open
Local to get a reasonable list of properties, skipping most sub
stations, roads, post boxes, phone boxes and other UPRNs. This isn't
perfect some property UPRNs are outside the OS Open Local building
footprint, and some others will be inside.

I'd also trim OS Open UPRN to exclude points from within OSMs
landuse=commercial. UPRNs in these areas are to dense to be understood,
especially at this time.

I'd also trim UPRNs that share locations (apartments), and possibly
those that are "extremely" close.

Tying in with with your address project, we could present these points
to users, allow them to add the house number and/or name. As well as
verify the street. Then add that point to OSM.

I'd argue to also get that data available to StreetComplete so it can
be added on surveys, that would mean the data would then again have to
be filtered against OSMs buildings and existing addresses.

See this StreetComplete issue for use third party data.
https://github.com/streetcomplete/StreetComplete/discussions/2477

I also wouldn't be against adding these address points to OSM before we
get the house number, or we trace the building. It would certainly
enable us to rapidly expand out postcode coverage.

Cj





More information about the Talk-GB mailing list