Automated edits/uaroadbot

From OpenStreetMap Wiki
Jump to navigation Jump to search

Purpose

A small toolchain that helps Ukrainian mapping commutity to keep national roads network up to date.

This tool is human-first: it does some mass changes with overrides only when community updates official road lists in github repository. In all other cases bot only adds missing tags or relations, without changing user-defined tags and data.

Features

Below some features of the bot listed.

Automatic relation create

This type of change happens when bot finds ways tagged with ref= tag, but without any relation with detailed description of the road. E.g. here bot created relation for some independent ways with common ref=: https://www.openstreetmap.org/changeset/116077377

Automatic relation tags update

This type of change happens in two cases: 1. when community updates official road lists and bot detects changes between list and OSM (by comparing list update date with latest changeset update timestamp). 2. when bot detects new road relation where human missed some required fields, like distance or road name. E.g. in this changeset bot added missing distance tag: https://www.openstreetmap.org/relation/13666255

Automatic relation members duplicates fix

When road relation has more than one member with same role, bot automatically keeps only one member and removes other from relation in order to avoid duplicates.

Mass changes log

TODO

  • Make bot less noisy during mass updates: don't create changeset for each operation and add source values (ETA: 30.03.2021)
  • Make bot write comments to changesets where human adds or edits osm in the way that possibly makes wrong information about road (ETA: 30.06.2021)

Useful data

Link to the bot profile: https://www.openstreetmap.org/user/uaroadbot

Official email: shalal545@gmail.com Human profile: Monstrofil