stations_geojson = ({
type: "FeatureCollection",
features: tembici.data.stations.map((d) => ({
type: "Feature",
properties: {
id: d.station_id,
name: d.station_information.name,
address: d.station_information.address,
num_docks_available: d.num_docks_available,
num_bikes_available: d.num_bikes_available,
num_bikes_disabled: d.num_bikes_disabled,
last_reported: m.unix(d.last_reported).format("YYYY-MM-DD HH:mm:ss")
},
geometry: {
coordinates: [d.station_information.lon, d.station_information.lat],
type: "Point"
}
}))
})