GithubHelp home page GithubHelp logo

Comments (3)

Dieterbe avatar Dieterbe commented on September 4, 2024

re search, i would like to be able to fuzzy search, for example "pudd dan" would include "danone pudding"

re displaying brand, it seems the api currently doesn't include this information, perhaps @rolandgeider can find a way to include it.

from flutter.

ysalmon avatar ysalmon commented on September 4, 2024

It seems the API has brands : https://pub.dev/documentation/openfoodfacts/latest/openfoodfacts/OpenFoodAPIClient/getProductV3.html

Here is how Energize searches for OFF products : https://codeberg.org/epinez/Energize/src/commit/f96c9183c0f4537dac70673055fb704135c16017/lib/services/food_database_bindings/open_food_facts/open_food_facts_binding.dart#L56

and how they consume the results from OFF : https://codeberg.org/epinez/Energize/src/commit/f96c9183c0f4537dac70673055fb704135c16017/lib/models/food/food.dart#L242

from flutter.

Dieterbe avatar Dieterbe commented on September 4, 2024

FWIW i meant the wger api.
it looks like energize may work directly with OFF.
in wger, we import from OFF via background jobs into the database, and then expose the database via the wger api (to the wger flutter app, the wger web UI, etc)
the job: https://github.com/wger-project/wger/blob/master/wger/nutrition/management/commands/import-off-products.py
it uses the code here https://github.com/wger-project/wger/blob/5c7192317a1f05fec64af33caf4224f4a4d49b05/wger/nutrition/off.py#L72 , it looks like we include brand into the database but i don't think we expose it via the wger api.

from flutter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.