Skip to content

matthiasfeist/skolverket2osm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

skolverket2osm

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.

How to use this script:

Prerequisits:

  1. You need to have nodeJS (version 16 or higher) installed on your computer
  2. 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/

Run the script

  1. Clone this repository into a folder on your computer
  2. In the folder, run npm install to install all dependencies.
  3. Create a .env file with the content
HERE_API_KEY=<your API key>
  1. Run npm start to run the script.
  2. The resulting file will be generated in output/skolverket.osm

Why is a HERE API key needed?

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published