<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi Rob,<div class=""><br class=""></div><div class="">I’m afraid I haven’t had the time to read the full threads on addressing and addr:place yet, but as you mentioned OS Open Names you might be interested in the code/approach for the Food Hygiene Open Data OpenStreetMap Tool (FHODOT), which attempts to parse freeform addresses into OSM tags and makes use of OS Open Names.</div><div class=""><br class=""></div><div class="">It generates addr:hamlet/village/town in addition to using a Wikipedia list of postal towns for addr:city. This seemed like the best approach at the time, although that may prove not to be the case depending on these discussions.</div><div class=""><br class=""></div><div class="">In any case the code is at <a href="https://github.com/gregrs-uk/fhodot" class="">https://github.com/gregrs-uk/fhodot</a> and is under a free licence (GPL). You can see how it works at <a href="https://gregrs.dev.openstreetmap.org/fhodot/" class="">https://gregrs.dev.openstreetmap.org/fhodot/</a>.</div><div class=""><br class=""></div><div class=""><div class="">Best wishes,</div><div class="">Greg</div></div><div class=""><br class=""></div><div class=""><div><br class=""><blockquote type="cite" class=""><div class="">On 14 Jan 2022, at 19:24, Rob Nickerson <<a href="mailto:rob.j.nickerson@gmail.com" class="">rob.j.nickerson@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="">Hi all,</div><div class=""><br class=""></div><div class="">There has not really been any comments on the process steps in JOSM so I don't know if I should proceed or not. I guess I will wait a bit longer as it's only been a day so far.<br class=""></div><div class=""><br class=""></div><div class="">In the meantime, I was thinking about what other approaches we could use to help with this clean up effort. I realised that there is the OS Open Names data set which includes a list of populated places (i.e. settlements). If these values match an addr:place tag then it is a good indication that the addr:place tag is wrong and should be addr:suburb or addr:city instead.<div class=""><br class=""></div><div class="">I have therefore made a spreadsheet of all the addr:place tag values (downloaded from TagInfo GB) that match an OS Open Names "populatedPlace" value.</div><div class=""><br class=""></div><div class="">I've marked a few  rows as fixed in the spreadsheet based on the edits I made to test the JOSM approach. The spreadsheet is open access so feel free to use this tracker. It is sorted by highest to lowest use of the addr:place tag.<br class=""></div><div class=""><br class=""></div><div class=""><a href="https://docs.google.com/spreadsheets/d/1BGeIyhlL-UODGOVJK543Iy699guc3C6Z0udFE57tYu0/edit?usp=sharing" class="">https://docs.google.com/spreadsheets/d/1BGeIyhlL-UODGOVJK543Iy699guc3C6Z0udFE57tYu0/edit?usp=sharing</a></div></div><div class=""><br class=""></div><div class="">Thanks,<br class=""></div><div class=""><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><span style="color:rgb(0,0,255)" class=""><b class="">Rob</b></span><br class=""></div></div></div></div></div><br class=""></div><br class=""><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 13 Jan 2022 at 23:51, Rob Nickerson <<a href="mailto:rob.j.nickerson@gmail.com" class="">rob.j.nickerson@gmail.com</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr" class=""><div class=""><div class="">Hi all,</div><div class=""><br class=""></div><div class="">As we learnt the other week, the 
addr:place tag has often been incorrectly used here in the UK. The tag 
addr:place is meant to be used when the address does <u class="">not</u> 
reference a street (tagged with addr:street) at all. This is frequently 
seen in small villages in continental Europe which often don't have any 
street names at all.</div><div class=""><br class=""></div><div class="">In the UK most cases of addr:place and addr:street being used together 
are incorrect and are cases where addr:suburb should have been used 
instead of addr:place. You can browse the <a rel="nofollow" href="https://nominatim.org/qa/#map=8.06/53.26/-0.64&layer=addr_place_and_street" target="_blank" class="">Nominatim QA</a> to find examples and help clean these up. </div><div class=""><br class=""></div><div class="">To help with this clean up effort I have tested an approach in JOSM that some might consider as captured by the Automated Edits code of conduct. I therefore wanted to share this process before proceeding.</div><div class=""><br class=""></div><div class="">Step 1:</div><div class="">Identify a potentially incorrect use of the addr:place tag. To do this I am looking at the list of values used on TagInfo GB and checking if any of these are villages/towns. If they are then there is a high chance that the addr:place tag is incorrect.</div><div class=""><a href="https://taginfo.openstreetmap.org.uk/keys/addr%3Aplace#values" target="_blank" class="">https://taginfo.openstreetmap.org.uk/keys/addr%3Aplace#values</a></div><div class=""><br class=""></div><div class="">Step 2:</div><div class="">Open the data in JOSM using an overpass query. An example query I am using to download the data is:</div><div class=""><br class=""></div><div class="">[out:xml][timeout:90];<br class="">{{geocodeArea:England}}->.searchArea;<br class="">(<br class="">  nwr["addr:place"="Eccleston"](area.searchArea);<br class="">);<br class="">(._;>;);<br class="">out meta;</div><div class=""><br class=""></div><div class="">Step 3:</div><div class="">Inspect the data in JOSM paying particular attention to other addr:* tags. To do this I start by doing a Ctrl+F and search for e.g. "addr:place"="Eccleston". This selects all the features with this tag. I can then see the full range of addr:* tags used on these features. High use of addr:street reiterates the incorrect use of addr:place. I can also see if the addr:suburb tag has been used on any features -> if it has then I go investigate this separately. I also investigate uses of all other addr tags except housenumber/name, unit, flats and street.<br class=""></div><div class=""><br class=""></div><div class="">Step 4<br class=""></div><div class="">Change addr:place to add:suburb. I get to this stage quicker if step 3 does not identify any conflicting addr:* tags (e.g. if the only other addr tags are housenumber/name and street). The more addr:* tags there are the more I look into individual OSM features before making this change.</div><div class=""><br class=""></div><div class="">As always, if in doubt then I don't proceed.</div><div class=""><br class=""></div><div class="">How do you feel about this sort of approach? With proper time spent carefully looking at the other addr tags that have been used, then I believe it is a low risk edit.<br class=""></div></div><div class=""><br class=""></div><div class="">P.S. Feel free to check out the results of a couple trials I made. e.g. <a href="https://www.openstreetmap.org/changeset/116122672#map=14/53.6500/-2.7281" target="_blank" class="">https://www.openstreetmap.org/changeset/116122672#map=14/53.6500/-2.7281</a> I'll pause on making more as I realise I should get the discussion going first.<br class=""></div><div class=""><br class=""></div><div class="">Thank you,<br class=""></div><div class=""><div dir="ltr" class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><span style="color:rgb(0,0,255)" class=""><b class="">Rob</b></span><br class=""></div></div></div></div></div></div>
</blockquote></div>
_______________________________________________<br class="">Talk-GB mailing list<br class=""><a href="mailto:Talk-GB@openstreetmap.org" class="">Talk-GB@openstreetmap.org</a><br class="">https://lists.openstreetmap.org/listinfo/talk-gb<br class=""></div></blockquote></div><br class=""></div></body></html>