Hi,

Over past several months I've been adding postcodes from Code-Point Open. I've streamlined the procedure a bit, so I can now add the tags without spelling out every single one of them, but it is still a manual and labour intensive process:

https://github.com/ndrw6/import_postcodes/

While working on that, I've noticed there are a lot of simple cases where automatic collation would have produced very similar results. For example, in case of existing OSM buildings without an addr:postcode tag located at or very near to a Code-Point Open centroid.

Therefore I'm requesting permission to use the following automated edit procedure:

1. Open an osm file containing missing postcodes (from the above website) in jOSM

1a. Select all points from the above dataset

2. Download OSM data in the area of interest

2a. Select all ways with a "building" tag of typical residential house size and without an "addr:postcode" tag (search phrase: 'building -"addr:postcode" type:way areasize:50-1000')

3. Use a collation plugin to collate both datasets with "centroid distance" set to "< 15m". The condition is there to apply postcodes only to small buildings in direct vicinity of the codepoint centroid.

There are some caveats I've noticed, often not different from manual editing:

a) Some buildings have addresses added as separate points rather than tags (automated edit will add addr:postcode tags directly to the building, this is what I chose to do manually as well)

b) Collation plugin doesn't support relations (these postcodes will get ignored and can be added later manually)

c) Often OSM buildings contain multiple addresses or postcodes and should be split into several buildings or building parts. This affects both manual and automated procedure, to minimize the impact I am setting relatively small "centroid distance" and building area limits.

Best regards,

ndrw6



_______________________________________________
Talk-GB mailing list
[email protected]
https://lists.openstreetmap.org/listinfo/talk-gb

Reply via email to