Changes

Jump to navigation Jump to search
No change in size ,  16:55, 26 August 2019
→‎General structure: Words capitalized
Line 332: Line 332:     
Notes:  
 
Notes:  
* the API returns all values in grams. This applies to both the key_100g and key_serving values.
+
* The API returns all values in grams. This applies to both the key_100g and key_serving values.
* the API always returns the energy values in kJ by default. Multiply the value by 0.23900573614 to convert it to Calories.
+
* The API always returns the energy values in kJ by default. Multiply the value by 0.23900573614 to convert it to Calories.
* any nutriments submitted to OFF as % DV values are converted to grams before being stored in the database. The conversion is done based on the values [https://github.com/openfoodfacts/openfoodfacts-server/blob/master/lib/ProductOpener/Food.pm here]. Thus, the conversion rates can be used again to change the nutriment values from grams back to % DV.
+
* Any nutriments submitted to OFF as % DV values are converted to grams before being stored in the database. The conversion is done based on the values [https://github.com/openfoodfacts/openfoodfacts-server/blob/master/lib/ProductOpener/Food.pm here]. Thus, the conversion rates can be used again to change the nutriment values from grams back to % DV.
    
====== List of nutrition keys ======
 
====== List of nutrition keys ======
18

edits

Navigation menu