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

Add an API field for calorie burn equivalences #2462

Open
Tracked by #5523 ...
teolemon opened this issue Oct 22, 2019 · 4 comments
Open
Tracked by #5523 ...

Add an API field for calorie burn equivalences #2462

teolemon opened this issue Oct 22, 2019 · 4 comments
Labels
API READ All READ APIs include Product, Search… API Issues related to the Open Food Facts API. More specific labels exist & should be used (API WRITE…) ✨ Feature Features or enhancements to Open Food Facts server 📖 Knowledge Panels https://wiki.openfoodfacts.org/Knowledge_panels no-issue-activity Nutrients Nutrition facts

Comments

@teolemon
Copy link
Member

teolemon commented Oct 22, 2019

What

Add an API field for equivalences.
sugar_cubes:"en":"This product contains the equivalent of 6 sugar cubes"
spoonful:"en":"This product contains the equivalent of 6 big spoons of fat"
sport_running:"en":"You would need to run 47 minutes at fast pace to use the nutrients of this product."
sport_kayak:"en":"You would need to kayak 2h30 minutes at fast pace to use the nutrients of this product."
adv:"en":"This product contains 234% of your daily fat dose. You should only consume 20% of it at any given meal."

Part of

@teolemon teolemon added the 🐛 bug This is a bug, not a feature request. label Oct 22, 2019
@stephanegigandet stephanegigandet added ✨ Feature Features or enhancements to Open Food Facts server and removed 🐛 bug This is a bug, not a feature request. labels Oct 22, 2019
@stephanegigandet
Copy link
Contributor

That's an interesting idea. But the API may not be the best place to implement it. Why not directly in the app? Possibly with a server side taxonomy for our own app if we want to use it to manage translations etc.

@Dwarfex
Copy link
Member

Dwarfex commented Nov 5, 2019

Why not add an additional API Endpoint where you can provide a unit and a count

like
{
unit: "kcal",
count: 2400
}

and a response would be:
{
kayak: 3600,
running: 1200,
walking: 8400
}

or something like that -
but yeah as @stephanegigandet says - maybe in an individual API ?

@VaiTon VaiTon added the API READ All READ APIs include Product, Search… label Nov 10, 2019
@teolemon teolemon changed the title Add an API field for equivalences Add an API field for calorie burn equivalences Jan 27, 2020
@github-actions
Copy link
Contributor

github-actions bot commented Jul 8, 2020

Stale issue message

@teolemon teolemon added the API Issues related to the Open Food Facts API. More specific labels exist & should be used (API WRITE…) label Aug 21, 2021
@teolemon teolemon added 📖 Knowledge Panels https://wiki.openfoodfacts.org/Knowledge_panels Nutrients Nutrition facts labels Aug 21, 2021
@teolemon
Copy link
Member Author

teolemon commented Oct 4, 2021

I realized that Wolfram does something like this:
https://www.wolframalpha.com/input/?i=Entity%5B%22Food%22%2C+%22GreenCurryPaste%3A%3Apqg43%22%5D
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API READ All READ APIs include Product, Search… API Issues related to the Open Food Facts API. More specific labels exist & should be used (API WRITE…) ✨ Feature Features or enhancements to Open Food Facts server 📖 Knowledge Panels https://wiki.openfoodfacts.org/Knowledge_panels no-issue-activity Nutrients Nutrition facts
Projects
Status: To discuss and validate
Development

No branches or pull requests

4 participants