[Talk-GB] Postcode data

Chris Hill osm at raggedred.net
Sun Jan 13 18:38:52 GMT 2013


On 13/01/13 15:21, Aidan McGinley wrote:
> Been toying with some ideas for how to use the ONS Postcode data[1]. 
>  One idea that I have been exploring is to check if the value for the 
> centre of the postcode is inside a closed way, and if so then tag that 
> way with the appropriate addr:postcode.  I mocked up a script to check 
> this using the overpass API.  Some sample output is in the attached 
> link [2].  Essentially the output shows the postcode and the 
> associated way or ways that enclose it if more than one.  I've 
> excluded ways tagged landuse=*.  The script is pretty inefficient at 
> the moment, and needs to be optimised, but before I do that I wanted 
> to check with the wider community that this is a viable approach, and 
> if so the best way to do the import.
>
> Worth noting that if the data were imported, then ways that map to 
> multiple postcodes would need to be excluded, as discussed previously 
> on the mailing list[3]
>
> [1] 
> http://www.ons.gov.uk/ons/guide-method/geography/products/postcode-directories/-nspp-/index.html
> [2] http://paste.ubuntu.com/1527642/
> [3] 
> http://lists.openstreetmap.org/pipermail/talk-gb/2013-January/014336.html
>
>
In case you haven't seen it, I produce and maintain a postcode layer 
based on ONS data that can be used in the editors. It helps determine 
the postcode, but always as a manual process.  You can see info here 
[1]  I doubt importing the data is practical and certainly would not be 
welcomed by many.  The resolution of the postcode centroids leaves doubt 
as to the edge cases. The closest postcode centroid is sometimes related 
to the properties on a different road, easy to spot by eye.

[1] http://onspd.raggedred.net/

-- 
Cheers, Chris
user: chillly




More information about the Talk-GB mailing list