Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nutrition: Adapt values to units #1102

Open
alexfauquette opened this issue Dec 13, 2024 · 1 comment
Open

Nutrition: Adapt values to units #1102

alexfauquette opened this issue Dec 13, 2024 · 1 comment

Comments

@alexfauquette
Copy link
Member

OFF API seems to return all the values with gramms.

But vitamins are often displayed in mg or micro-grams.

Image

A solution could be to do conversion. If user selects g and the off data is using grams, we convert the off value in mg

@teolemon
Copy link
Member

Note that we have an API route to return the nutrient name in whatever language you wish, as well as the typical unit (for the country)
https://world.openfoodfacts.org/cgi/nutrients.pl

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: To Discuss & Validate
Development

No branches or pull requests

2 participants