Data transformation - Vincentvanleeuwen/frontend-data GitHub Wiki

I started with the following data.

[0-1566] 0: {
areaid: "599_KRZM"
areamanagerid: "599"
capacity: "1700"
chargingpointcapacity: "4"
disabledaccess: "0"
enddatespecifications: "20991231235959"
maximumvehicleheight: "0"
startdatespecifications: "20141101000000"
}
[0-355] 0: {
areadesc: "Parkeergarage Stationsplein (Weert)"
areaid: "988_STAT"
areamanagerid: "988"
enddataarea: "29991231"
location: {latitude: "51.249263663", longitude: "5.705462804", human_address: "{"address": "", "city": "", "state": "", "zip": ""}"}
startdataarea: "20141027"
usageid: "GARAGEP"
}

Because I don't need all properties, I filtered the array with the needed columns and merged the two data sets into the following data set. see: https://github.com/Vincentvanleeuwen/frontend-data/blob/main/modules/cleanData.js#L35-L200

[0-83]  0: {
capacity: 7443
chargingPointCapacity: 30
location: "Almere"
type: "town"
}

I can now successfully load this data set into d3.