Currently there are are nearly 400 errors in the town of Lymington Nominatim QA Tool each without a space (I haven’t checked them all).
Since UK postcodes must use upper case letters and have a space immediately before the last digit, could someone (point me at how to) make bulk database update to fix these ?
Is it worth adding a bot which corrects format errors in UK Postcodes ?
Could anyone suggest any similar bots that we could copy ?
I’m often the person who fixes those. I check the Nominatim QA tool regularly for Europe. In UK and Nederlands spaces and uppercasing are the most common mistakes users make. Compared to missing a digit, having one digit too much, 0 vs O, or putting house numbers or city name in the postcode field.
For a small area, here it’s one neighborhood, I usually use a Overpass API plus level0 editor.
overpass turbo Ideally with the exact (wrong) postcode but in this case it’s multiple so I’d query all
Click on ‘Data’ instead of ‘Map’ shows the relevant objects. But it’s not formatted nicely. I change the [out:json] in the query to [out:csv(::type,::id)] and run it again
Now I see a list
@type @id
way 161881012
way 161881013
way 712133694
way 712133695
way 712133696
way 712133697
way 712133698
Using my favorite editor I change the list into a comma separated one line
I ended up using iD editor and the shift-key to select multiple buildings. The UK QA map looks cleaner now Nominatim QA Tool
Most remaining warnings are roads with incomplete postal_code set (last digit missing). If all buildings left and right have their full post set then I remove that. If not then it might be enough of valuable information, even though roads rarely receive mail.
My long-term plan is to write a iD editor validation plugin which warns users and offers suggestions. I have written a validation plugin last year for name vs noname issues.
In anyone’s interested, one of my tools does some slightly more detailed checking of UK postcodes, including validation against the official Code-Point Open list. The data is updated roughly weekly, and the results can be seen at https://osm.mathmos.net/addresses/pc-errors.html.
Hi there! I’m not sure this was the right thread for that question, but never mind. If you just want to flag a particular street or area, you can use the Notes facility on the main site (please see the OSM wiki docs, or view an example area).
You can ask in the global Help and support threads on here too, if it’s something general.
If it’s something UK-specific and needs an organised effort, please post a new topic in the United Kingdom community, again on this forum.