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
660 stars 389 forks source link

Taxonomize stores - Add autosuggest for stores #7632

Open teolemon opened 2 years ago

teolemon commented 2 years ago

What

Part of

CloCkWeRX commented 11 months ago

2011 is heavily related.

Openstreetmap has https://nsi.guide and ~904 supermarket https://nsi.guide/index.html?t=brands&k=shop&v=supermarket brands.

Use case 1: Store names

Use case 2: Store brands

teolemon commented 11 months ago

Raphael O is working on that for Open Prices https://github.com/openfoodfacts/open-prices/pull/38 https://prices.openfoodfacts.org/docs It might be interesting to pool the endpoint with Product Opener @raphael0202

CloCkWeRX commented 10 months ago

Looking at the stores.txt taxinomy, how much does it have to stay in that format?

vs say https://raw.githubusercontent.com/osmlab/name-suggestion-index/main/data/brands/shop/supermarket.json

aleene commented 10 months ago

Better to keep the same format as the other taxonomies.

CloCkWeRX commented 10 months ago

Hmm, may have been superceded by https://github.com/openfoodfacts/taxonomy-editor to a degree

alexgarel commented 10 months ago

https://github.com/openfoodfacts/taxonomy-editor can help maintain the taxonomy, but for now we keep a format. But it's a good reason to keep same format.

Per se, the autosuggest could be instead provided by https://github.com/openfoodfacts/search-a-licious and maybe it's already in the @raphael0202 ?

CloCkWeRX commented 10 months ago

Well, for the short term I've generated it in the taxinomy format in git: https://github.com/openfoodfacts/openfoodfacts-server/pull/9607

Trivial to adjust the generation script to something else.

raphael0202 commented 10 months ago

@alexgarel No it's not included in search-a-licious, it looks like we have an "unofficial" store taxonomy though: https://world.openfoodfacts.org/data/taxonomies/stores.full.json

CloCkWeRX commented 10 months ago

What's the preference re format - /data/taxonomies/stores.full.json or stores.txt.

Happy to enhance either as per https://github.com/openfoodfacts/openfoodfacts-server/pull/9607

raphodn commented 10 months ago

Interesting for https://github.com/openfoodfacts/open-prices !

We're slowly getting dozens of stores with OFF products : https://prices.openfoodfacts.org/app/locations

teolemon commented 10 months ago

@raphodn @raphael0202 @CloCkWeRX Please add a 👍 to the issue, so that it gets into popular issues

CloCkWeRX commented 10 months ago

@teolemon - I'd be keen on PR feedback instead. https://github.com/openfoodfacts/openfoodfacts-server/pull/9607 - if it's the wrong approach, okay, what's the right one these days?