New API v3 for dropdown and autocomplete suggestions for packaging shapes, materials and recycling taxonomy #8002
Labels
API v3
✏️ Editing - Auto Suggest
Providing autosuggest for taxonomized fields. Mostly used in editing scenarii
📦 Packaging
https://wiki.openfoodfacts.org/Category:Recycling
On the web, the product edit form has dropdown/autocomplete for packaging shapes and material with suggestions sorted alphabetically, which provides poor results (especially since people can type a material short name such as PET, or its number such as 1 or 01).
We have a generic taxonomy suggestion API that is a bit better (priority given to strings at the start of taxonomy entries, match with xx: entries): https://world.openfoodfacts.org/cgi/suggest.pl?tagtype=packaging_materials&term=pe
We can do better by suggesting the most common shapes given the country and categories of the product. e.g. for wine we can suggest a bottle. For a wine bottle, we can suggest glass.
Requirements:
The text was updated successfully, but these errors were encountered: