Find good playgrounds

node v10.24.1
version: master
This demonstrates simple filtering - just showing those greenspaces that include a playground and with which the assessor was satisfied.
var getJSON = require("async-get-json"); var greenspaces = await getJSON(""); var playgrounds = greenspaces.features.filter(feature =>['R1P'].includes("Yes")) var good_playgrounds = playgrounds.filter(feature =>['NESTLIKERT'].includes("Very Satisfied") ||['NESTLIKERT'].includes("Satisfied"))
We can output the results as an HTML table, too.
var rows = { return `<tr><td>${}<td>${}`; }); `<table>${rows.join('')}</table>`

no comments

    sign in to comment