ccDocksGeoJSON = {
let featuresArray = [];
ccDocksJSON.forEach((x) => {
if (x.location && x.type == "OPEN") {
let geometry = x.location.reverse()
let properties = {
"id": x.id,
"locking_station_type": x.locking_station_type,
"description": x.description,
"address": x.address,
"stocking_full": x.stocking_full
}
let feature = turf.point(geometry, properties)
featuresArray.push(feature)
}
})
return turf.featureCollection(featuresArray)
}