Automated edits/Latvia-bot/Tags

From OpenStreetMap Wiki
Jump to navigation Jump to search

Operating principles

For all elements except the ones intersecting state border (according to OSM data):

  1. Trim values. Community approval.
  2. Remove semicolons at the end of values. Community approval.
  3. Trim and sort multiple semicolon separated values in alt_name=* and old_name=* keys. Community approval.
  4. If missing, add name=* equal to name:lv=* if it's already present. name:lv=* might be deleted in later steps. The same goes for alt_name=* and old_name=* keys. Community approval.
  5. Remove multilingual names if all match default name=*. In Latgale, for key place=* for nodes and keys place=*, natural=* and waterway=* for ways and relations keep name:lv=* and name:ltg=* keys as in some cases Latgalian might be used as name and otherwise it might be impossible to distinguish which language is used. The same goes for alt_name=* and old_name=* keys. Community approval.
  6. From history, restore multilingual names all matching default name=* if multilingual names that differ from the default name have been added. In case of multiple values for the same key in history, retrieve the latest. Community approval.
  7. Remove alt_name=* if it matches name:ltg=*. Community approval.
  8. For isolated dwellings, remove multilingual names. In Latgale, keep only name:lv=* and name:ltg=*. Community approval.
  9. If missing, add name:lv=* that equals default name=* if multilingual names that differ from the default name exist. In Latgale, don't add name:lv=* if name=* matches name:ltg=* as some names use Latgalian as default name. Community approval.

Border of Latgale taken from the borders of historical lands published on the Latvia's Open Data Portal.