// Due to filesize I wrote a node script to transform the XML to JSON, and filtered in all stop places in Amsterdam. See https://github.com/jurb/ndovhaltes-a11yjson/ for the script.
// Een dagelijkse update van het bestand is te vinden op https://data.ndovloket.nl/haltes/. Documentatie met uitleg kolommen staat op https://github.com/BISONNL/CHB.
data[0].quays.quay[0]
[...newSet(quays.map(el=>el.quaystatus))]
getSlopeAngle=(height,length)=>
Number.isFinite(height)&&Number.isFinite(length)
?(Math.atan(height/length)*180)/Math.PI
:null
// calculate slope, return null on error
quays.filter(el=>el.quaycode.slice(5,8)!=='300')
quays.map(el=>el)
Purpose-built for displays of data
Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.