openoakland / woeip

A platform for impacted communities to understand their local air quality and advocate for environmental justice.
https://woaq.org
MIT License
29 stars 16 forks source link

As the database, I want to be able to ingest Truck Tracker data #158

Open theecrit opened 4 years ago

theecrit commented 4 years ago

Description

We want to create a new table in the database to accommodate the data coming from Trucker Tracker, a stand-alone app built for our partner, WOEIP, that allows West Oaklanders to report truck activity in their neighborhood. Truck Tracker will send its data to our database so it can be seen together with the AQ data.

Acceptance criteria

Related documentation

TBD

Dependencies and assumptions

r-b-g-b commented 4 years ago

I don't have a detailed understanding of the TruckTracker data, but here goes... An observation is defined as:

I propose two new tables:

@motching Am I missing anything? I think that these two tables would add a capacity to store stationary observations that do not have numerical values attached to them, which could be useful for other kinds of data in the future.

motching commented 4 years ago

@r-b-g-b thanks for picking this up! My comments and questions:

== General ==

== Polluter ==

== PolluterObservation ==

This is for now, I'll make a branch and poke around a bit, probably will have more thoughts after that.

theecrit commented 4 years ago

Thanks for starting to unpack this. Before we problem-solve this particular data set, though, I think it would be good to have a defined approach to solving for new additions in general. My suggestion:

  1. First identify the data points that exist for the new set.
  2. Map data points to existing tables where possible.
  3. Identify the gaps and either adjust or add tables as appropriate.

So we have the following data points coming in from TT:

Not explicitly collected but potentially extrapolated in the future:

Mapping, then, looks like:

I'd argue that "Vehicle type" should live in a new table called "Sources," which could allow us to scale this table to incorporate other polluting sources beyond vehicles. But we should definitely have a conversation with WOEIP about this, to understand a bit more about use cases.

Let's chat about all this tonight. :)