Automated edits/Latvia-bot/Tags
Jump to navigation
Jump to search
Operating principles
For all elements except the ones intersecting state border (according to OSM data):
- Trim values. Community approval.
- Remove semicolons at the end of values. Community approval.
- Trim and sort multiple semicolon separated values in alt_name=* and old_name=* keys. Community approval.
- 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.
- 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.
- 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.
- Remove alt_name=* if it matches name:ltg=*. Community approval.
- For isolated dwellings, remove multilingual names. In Latgale, keep only name:lv=* and name:ltg=*. Community approval.
- 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.