Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save bwbroersma/4d664cd605540e10b78ca96d5acb9551 to your computer and use it in GitHub Desktop.
Save bwbroersma/4d664cd605540e10b78ca96d5acb9551 to your computer and use it in GitHub Desktop.
curl 'https://www.investeer-in-onderwijs.nl/load/mapschooldata.js' -sSfA '' --compressed \
| nodejs -e "fs=require('fs');console.log(JSON.stringify(eval(fs.readFileSync('/dev/stdin').toString()+';iioMarks;')));" \
| jq '{type:"FeatureCollection",features:map({type:"Feature",properties:{name:.[2],"marker-color":"#FF0000"},geometry:{type:"Point",coordinates:[(.[1]|tonumber),(.[0]|tonumber)]}})}'
@bwbroersma
Copy link
Author

bwbroersma commented Nov 6, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment