This projects converts data about schools in Sweden to a file that can be used to import this data into OpenStreetMap. You can read more about this effort on the OSM Wiki page for this import project.
- You need to have nodeJS (version 16 or higher) installed on your computer
- You need to have a HERE API key. This is used for their geocoding API. Sign up for one here: https://platform.here.com/portal/
- Clone this repository into a folder on your computer
- In the folder, run
npm install
to install all dependencies. - Create a
.env
file with the content
HERE_API_KEY=<your API key>
- Run
npm start
to run the script. - The resulting file will be generated in output/skolverket.osm
Skolverket's API does return geoposition data, however you can't rely on this data. A lot of schools have the same position or positions are completely off. When asked about this problem, Skolverket replied (in Swedish):
Vi känner till felet. Det handlar om skolenheter som inte har uppdaterats sedan skolenhetsregistret flyttades från SCB, dvs de fick fel koordinater när SCB förvaltade registret. Det är inget som rättas till i databasen, utan görs med fördel av huvudmännen.
Essentially: They know of the problem but will not fix it.