openfoodfacts / openfoodfacts-server

Open Food Facts database, API server and web interface - πŸͺπŸ¦‹ Perl, CSS and JS coders welcome 😊 For helping in Python, see Robotoff or taxonomy-editor
http://openfoodfacts.github.io/openfoodfacts-server/
GNU Affero General Public License v3.0
658 stars 388 forks source link

Allow comparing products by cost per mass/volume of nutrients #452

Open aleksejrs opened 8 years ago

aleksejrs commented 8 years ago

What

  1. Enter prices (and quantities, if applicable) of two or more products/categories
  2. Get a table comparing the costs of each nutrient per gram or milliliter (maybe along with the normal quantity comparison if possible).
TaciteOFF commented 8 years ago

Prices are a very touchy topic and I think it shouldn't be directly implemented in Open Food Facts but on a second project. To make our database grow bigger we need to have verified datasets from manufacturers. There's a high chance that manufacturers will never want to help us if we clearly show prices.

See #prices on our Slack for more information.

aleksejrs commented 8 years ago

I mean only entering prices in the comparison UI, not storing them.

aleksejrs commented 8 years ago

Teolemon also mentioned "how many calories per dollar?"

aleksejrs commented 8 years ago

The prices should be easily editable without reloading the page (like in Android's calculator).

aleksejrs commented 8 years ago

nutrient-price-comparison-001

An imperfect graphical comparison.

Product A contains less Green nutrient than product B does, but you can get more of it for the same price, if you don't mind the Yellow nutrient and the grey Rest, of which there is more in A than in B.

Red is hard to compare in this case, maybe numbers would help.

P.S.: maybe nutrients with very low quantities could be shown in separate big rectangles.

aleksejrs commented 7 years ago

https://ru.openfoodfacts.org/product/4607177745602 about 14 roubles for 350 g. https://ru.openfoodfacts.org/product/4601347002052 about 28 roubles for 400 g.

First column shows how much of a nutritional value you get for 28 β‚½, and the second column shows how much of the correspondent value of the other product that is.

Бородинский, 2 halves, 28 β‚½ for 700 g:

Ароматный, 28 β‚½ for 400 g:

Things to consider:

teolemon commented 2 years ago

We're now talking of shrinkflation

teolemon commented 9 months ago

@aleksejrs @TaciteOFF @raphael0202 @raphodn https://prices.openfoodfacts.org/app/prices starts solving this.