<div>@Rob yes I had seen that.  It is a great tool, but as you say it's difficult to be absolutely sure that what you get back is accurate</div><div><br></div><div>To summarise what I'll be looking at doing</div><div>
<br></div><div>Filter the following from the ONS Postcode data:</div><div> - Postcodes which have a date of termination set</div><div> - Postcodes whose centroid is shared with other postcodes</div><div> - Postcodes which have a quality indicator other than "Within the building of the matched address closest to the postcode"</div>
<div><br></div><div>Then match these filtered centroids to ways from Openstreetmap that have the following criteria:</div><div> - The way is closed</div><div> - The postcode centroid is inside the way</div><div> - The way does not already have a "addr:postcode" tag</div>
<div> - The way is tagged building=*  </div><div><br></div><div>There are future enhancements that can be done around tackling ways tagged amenity=* as per Rovastars comments, and reporting on postcode accuracy but the above is enough for the initial version I think.</div>
<div><br></div><div>If there are no objections to the above, I will start work on optimizing the script and get in touch with the import mailing list to discuss how to actually tackle the task of importing the data.</div>
<div><br></div><div><br></div><div><br></div><br><div class="gmail_quote">On 14 January 2013 19:54, Rob Nickerson <span dir="ltr"><<a href="mailto:rob.j.nickerson@gmail.com" target="_blank">rob.j.nickerson@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Aidan,<br><br>Sounds like you have thought this through to ensure that this "import" will work well in practice. I would be more satisfied if imports were to closed ways with building=* only (as mentioned by others).<br>

<br>Have you seen the Land Registry 'price paid' open data that includes addresses and postcodes. Matt had a go at creating a simple tool that matches their data to OSM address tags [1]. It's a great start, but be aware that the "nearby houses" only matches on street name and number so you can end up with addresses in different towns. Also it's quickest if you specify at least the first number after the space (e.g. CV4+8)<br>

<br>Rob<br><br><br>[1] <a href="http://milliams.dev.openstreetmap.org/postcodefinder/landregistry/" target="_blank">http://milliams.dev.openstreetmap.org/postcodefinder/landregistry/</a><br>
</blockquote></div><br>