Mechanical Edits/Mateusz Konieczny - bot account/retag sidewalk=none
Page content created as advised on Automated_Edits_code_of_conduct#Document_and_discuss_your_plans.
This edit will retag sidewalk=none
to sidewalk=no
- worldwide.
Who
I, Mateusz Konieczny using my bot account
contact
message via OSM I will respond also to PMs to the bot account, though messaging my main account is preferable as I will get notifications in OSM editors.
English and Polish languages are preferable, for other I need to use an automatic translator.
What
retag sidewalk=none
to sidewalk=no
Why
Having multiple different but equivalent values is confusing and it should be avoided.
It causes no problem to people using presets but such tag fragmentation discourages mapping by directly editing tags what is unwanted.
It is a very minor improvement, but still removes one piece of annoyance for new data consumers and for anyone looking at raw tags. Yes, it is a tiny change and nothing groundbreaking and having synonyms is not even in top 10 of annoyances for data consumers. But such change is an improvement and easy to do.
sidewalk=none
is unwanted duplicate sidewalk=no
and there is a clear support to consider it completely deprecated.
Yes, editing objects will edit them, change date of last edit and add entry to history. Negative effects of that are minimal and not important.
On the other hand validation, spot checks and review of bot edits will result in fixing some other issues that would not be spotter otherwise and reduces changes of various mistakes if it would be done manually.
Note that in this case migration is to an already standard and widely used value. So it will not break any data consumers (except ones that were broken already). Migrating values to new, unsupported among data consumers would be far more problematic and is almost never, if ever, a good idea.
Numbers
Large enough to make it useful to automate it.
How
state after a mechanical edit:
Changeset would be described and tagged with tags that mark it as automatic, provide link to discussion approving edit, include link promoting https://matkoniecz.github.io/OSM-wikipedia-tag-validator-reports/ etc
Some additional validation may be performed as part of making this edit (building=house
sidewalk=none
or highway=footway
sidewalk=none
may be not retagged)
Discussion
forums: https://community.openstreetmap.org/t/sidewalk-none-to-no-proposed-automated-edit/128842
mailing list: https://lists.openstreetmap.org/pipermail/talk/2025-April/088677.html
Repetition
This is reoccurring edit and may be made as soon as new matching elements appear. At this moment triggering new edit requires human intervention so exact schedule is not predictable and bot may stop running at any moment.
This can change in a future. If bot is abandoned and does not run, feel free to ping me. If I am unable to run it any more feel free to use my code. Note that it may require going through bot approval process again and that code is on specific license.
https://codeberg.org/matkoniecz/OpenStreetMap_cleanup_scripts/src/branch/master/recurrent_bot_edits may have more up to date code version that what is listed on this page
Source code
GPL 3.0 licensed
from osm_bot_abstraction_layer.generic_bot_retagging import run_simple_retagging_task import wikimedia_connection.wikimedia_connection as wikimedia_connection import wikibrain.wikimedia_link_issue_reporter import osm_handling_config.global_config as osm_handling_config def edit_element(tags): if tags.get('sidewalk') != "none": return tags if tags.get('highway') not in ["motorway", "motorway_link", "trunk", "trunk_link", "primary", "primary_link", "secondary", "secondary_link", "tertiary", "tertiary_link", "unclassified", "residential", "living_street", "pedestrian", "service", "track", # ?????????? ]: print(tags) print("expected highway value missing") return tags tags["sidewalk"] = "no" return tags def main(): wikimedia_connection.set_cache_location(osm_handling_config.get_wikimedia_connection_cache_location()) run_simple_retagging_task( max_count_of_elements_in_one_changeset=500, objects_to_consider_query=""" [out:xml][timeout:25000]; ( way["sidewalk"="none"]; ); out body; >; out skel qt; """, objects_to_consider_query_storage_file='/media/mateusz/OSM_cache/osm_bot_cache/tags_for_retagging.osm', is_in_manual_mode=False, changeset_comment='migrate sidewalk=none to sidewalk=no', discussion_url='https://community.openstreetmap.org/t/sidewalk-none-to-no-proposed-automated-edit/128842 and https://lists.openstreetmap.org/pipermail/talk/2025-April/088677.html', osm_wiki_documentation_page='https://wiki.openstreetmap.org/wiki/Mechanical_Edits/Mateusz_Konieczny_-_bot_account/retag_sidewalk%3Dnone', edit_element_function=edit_element, ) main()
Opt-out
Please write at bot approval thread. Note that in case of opt-out exactly the same edit will be made manually for objects where bot opt-out was used.
See also
- Mechanical Edits/Mateusz Konieczny - bot account/retag sidewalk=none in Poland
- https://wiki.openstreetmap.org/wiki/Talk:Key:sidewalk#Is_sidewalk.3Dnone_valid.3F
- https://wiki.openstreetmap.org/wiki/Key:sidewalk#Deprecation_of_sidewalk=none
- https://wiki.openstreetmap.org/wiki/Talk:Key:sidewalk#Is_sidewalk.3Dnone_valid.3F
- https://josm.openstreetmap.de/ticket/21242
- https://github.com/streetcomplete/StreetComplete/pull/3194
- https://github.com/openstreetmap/id-tagging-schema/pull/222
- https://taginfo.openstreetmap.org/tags/sidewalk=none#chronology