thk123 / climate-dashboard

A website with the aim of seeing the state of progress towards tackling climate change.
https://climate-dashboard.appspot.com
MIT License
2 stars 1 forks source link

Design proper API for data queries #5

Open thk123 opened 5 years ago

thk123 commented 5 years ago

Goals:

Data format:

RowTitle?, ColumnTitle, 
RowTitle, UnitOfColumn, 
RowTitle, DATA
RowTitle, DATA

Request of the form:

/api/data

"SheetIdentifer[ColumnName] * AnotherSheet[Column][rowKey]" -> { column: "ColumnName", unit: "g other", [column data, ...] }

Where each element would be multipled by the value at AnotherSheet[Column][rowKey], with the units

Next step is to think of a few examples uses and get them working.

thk123 commented 5 years ago

Example use:

Find out individuals carbon budget by:

TargetCarbonEmissionsByYear / PredictedPopulationByYear