Automated edits/adding school levels
Jump to navigation
Jump to search
Goal
Our motivation is to unify and complete tagging for schools.
We want to improve tagging so that you can run reliable data processing/analysis with OSM.
Implementation
The process will perform the following steps:
- Get a dataset of all schools without the isced:level=*. We use Overpass API for this. Save it as *.osm file.
- We let a python script change the osm file:
- The following repository contains the script, an example input dataset and an example output file: https://github.com/EmnaBH/adding-isced-level-to-schools-in-germany
- The osm file is read in as xml.
- The script goes through each object (node/way) and reads the name.
- If the name contains a certain string (e.g. grundsch or grund-) (primary schools), the corresponding isced:level is inserted into a list.
- The list is converted into a string and a key-value pair is created for the objects.
- At the end the file is saved as output.osm.
- The output can be uploaded to osm and the changes can be seen after a short amount of time.