Mechanical Edits/Piotr J - removing 'addr:place' tag where it duplicates 'addr:city' tag in Poland

From OpenStreetMap Wiki
Jump to navigation Jump to search

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:place=* where it duplicates addr:city=* for all addresses with addr:housenumber=*, which 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 cities with street names in Poland.

Why

Duplicating addr:place=* with addr:city=* 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

4793 cases in Poland.

How

An example ( https://www.openstreetmap.org/way/274625232/history ):
state before a mechanical edit:

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:

Edits generated by JOSM.

Discussion

https://forum.openstreetmap.org/viewtopic.php?id=72060

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).


Sample Overpass code for geocodeArea:pomorskie

[out:xml]/*fixed by auto repair*/[timeout:250];
// fetch area “pomorskie” to search in
{{geocodeArea:pomorskie}}->.searchArea;
// gather results
(
  node["addr:street"]["addr:housenumber"]["addr:city"]["addr:place"](if: t["addr:city"] == t["addr:place"])(area.searchArea);
  way["addr:street"]["addr:housenumber"]["addr:city"]["addr:place"](if: t["addr:city"] == t["addr:place"])(area.searchArea);
  relation["addr:street"]["addr:housenumber"]["addr:city"]["addr:place"](if: t["addr:city"] == t["addr:place"])(area.searchArea);
);
// print results
out meta;/*fixed by auto repair*/
>;
out meta qt;/*fixed by auto repair*/