Jump to content

Nutrients handling in Open Food Facts: Difference between revisions

Added other allowed field to use
(entered)
(Added other allowed field to use)
Line 49: Line 49:
=== Data display ===
=== Data display ===


The OFF web site, and apps, should use those fields to display the nutrition facts:
The OFF web site, and apps, should only use these OFF proocessed fields to display the nutrition data:


* nutrient-id_100g or nutrient-id_serving (depending on the value of nutrition_data_per) : value in g or in kJ
* nutrient-id_100g or nutrient-id_serving (depending on the value of nutrition_data_per) : value in g or in kJ. The values are passed as float/double???
* nutrient-id_value : to show the original entered/passed data (useful for characters as "<" or "~"}.


The web site and apps must:
The web site and apps must:
3,543

edits