2025-02-24 02:01:15 +01:00
..
2025-02-24 00:28:56 +01:00
2025-02-24 02:01:15 +01:00
2025-02-24 00:28:56 +01:00

source files are in this format:

i.e. contents of source-data/by-district/01-lekkerwijk:

astraat, bstraat, cweg, dstraat, theo de vstraat.

they have useful comments and shit. for instance the rotterdam central station needs to be marked manually on the map, and there's some streets which i had to rename because they were misspelled in the gemeenteblad. this is all documented in the source files as comments starting with #

this is how they are formatted in the gemeenteblad.

you run ./scripts/01-sed-to-single-line this removes all the unnecesary metadata from source files and spits out a single-line file into working-data/01/ for each source file

then ./scripts/02-way-queries builds queries for every single street, grouping them in files of 5 queries to not overload the API. then it spits them out into working-data/02/ for ./scripts/03-build-query-for-district which adds all the header and footer for the actual request to work properly.

then ./scripts/04-call-overpass-api POST's all these files into the overpass API and stores the resulting JSONs in working-data/04 these then need to be converted into GeoJSON for QGIS to be able to understand them. I use https://github.com/tyrasd/osmtogeojson which you need to install via npm.

for i in working-data/04/*; do osmtogeojson "$i" > "geojson-files/$(basename $i)"; done