Mechanical Edits/Piotr J - removing 'addr:city' tag where it duplicates 'addr:place' tag in Poland
Page content created as advised on Automated_Edits_code_of_conduct#Document_and_discuss_your_plans.
Who
I, Piotr J using Overpass turbo and JOSM.
Contact
message via OSM I will be notified about incoming PMs via email and notifications in OSM editors.
What
On the area of Poland removing addr:city=* where it duplicates addr:place=* for all addresses with addr:housenumber=*, which not contain addr:street=*. It is in line with general recommendation of addressing in Poland. In most of the cases it is standard way of addressing in villages without street names in Poland.
Why
Duplicating addr:city=* with addr:place=* is not recommended by local community in Poland. Removing duplicated tags manually where it gives no benefit is a waste of time, it is better use mapping time for something more useful.
Numbers
Over 500K cases in Poland.
How
An example ( https://www.openstreetmap.org/node/2517128436/history ):
state before a mechanical edit:
- addr:city=Postolin
- addr:housenumber=55
- addr:place=Postolin
- addr:postcode=82-400
- source:addr=EMUIA (emuia.gugik.gov.pl)
state after a mechanical edit:
Changeset would be described and tagged with tags that mark it as automatic and provide link to discussion approving edit. It would include at least:
Changeset split into small areas to avoid continent-sized bounding boxes.
Edits generated by JOSM.
Discussion
https://forum.openstreetmap.org/viewtopic.php?id=71877
Repetition
Redoing this edit in the future would be treated as a new mechanical edit with a new approval process.
Opt-out
Please comment in the discussion thread (see #Discussion).
Code
/* This has been generated by the overpass-turbo wizard. */ [out:xml][timeout:90]; // gather results ( node["addr:street"!~".*"]["addr:housenumber"]["addr:city"]["addr:place"](if: t["addr:city"] == t["addr:place"])({{bbox}}); way["addr:street"!~".*"]["addr:housenumber"]["addr:city"]["addr:place"](if: t["addr:city"] == t["addr:place"])({{bbox}}); relation["addr:street"!~".*"]["addr:housenumber"]["addr:city"]["addr:place"](if: t["addr:city"] == t["addr:place"])({{bbox}}); ); // print results out meta;/*fixed by auto repair*/ >; out meta qt;/*fixed by auto repair*/