Open teolemon opened 5 years ago
Currently the nutrient list is harcoded in https://github.com/openfoodfacts/openfoodfacts-androidapp/blob/46a8fbb136d222729011c198bbeca500f0c37668/app/src/main/java/openfoodfacts/github/scrachx/openfood/models/Nutriments.java#L30
However, we have a Taxonomy of nutrients we can refresh. https://static.openfoodfacts.org/data/taxonomies/nutrients.json
Also it doesn't show fields like Polyols
Currently the nutrient list is harcoded in
However, we have a Taxonomy of nutrients we can refresh. https://static.openfoodfacts.org/data/taxonomies/nutrients.json
How could we get relations between them? (I'm thinking of minerals, vitamins, etc...) @teolemon
Also, if we create a map at runtime, we should change all occurrences like this
if (Nutriments.ENERGY.equals(nutrientShortName))
The API is now available to use: https://fr.openfoodfacts.org/cgi/nutrients.pl
The API is now available to use: https://fr.openfoodfacts.org/cgi/nutrients.pl
https://world.openfoodfacts.org/product/1/pot-au-feu-golden-viginia