Add new regions
Flunzmas opened this issue · comments
We are currently working on an updated description/mechanism for adding new regions to the app.
For now you can:
- point us to websites/organizations with fruit and vegetable availability data for the region
- ask for permission to reuse said data
- integrate the data into the database and give proper credit / or "Non-Database-fiddling Alternative"
Outdated description
From v1.5.0, adding a new region XX
corresponds to adding new availability info for each food:
- Creating a new table
foods_av_XX
in the SQLite database fileassets/db/foods.db
, withXX
being a two-letter code for the region. The easiest way to do this is by copying the tablefoods_av_ce
with the SQL statement below:
CREATE TABLE foods_av_xx AS SELECT * FROM foods_av_ce
- Replace the availability data (including the column
isCommon
): each column holds a number per month, separated by commas.0.0
indicates no availability, e.g.0.5
indicates partial availability and1.0
abundant availability in that month. - Specify in the column
isCommon
whether the food is common or a rarity in your region.
Non-Database-fiddling Alternative
Send me a spreadsheet with the data of your region, containing the availability numbers for each food (1 number per month) and whether the food is common or a rarity in your region.
I have contacted both cuesa.org and eufic.org #104 and asked for permission to reuse their data.
We did not get permission from cuesa :(