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 field for allergy information and other restriction labels #713

Open
bbastin opened this issue Apr 20, 2023 · 2 comments
Open

Add field for allergy information and other restriction labels #713

bbastin opened this issue Apr 20, 2023 · 2 comments

Comments

@bbastin
Copy link

bbastin commented Apr 20, 2023

Many visitors of canteens rely on allergy information and labels for vegetarian or vegan food for ethical reasons as well as other restrictions based on faith. If this would be added in a machine-readable way, applications could allow for filtering based on certain dietary restrictions.

@jgraichen
Copy link
Member

We currently provide the notes fields for adding details, but not with defined values. At the time, no canteen provided machine-readable details, and we weren't aware of a standard?

Do you know of a standard we could embed in the XML feed format and the API?

@bbastin
Copy link
Author

bbastin commented May 20, 2023

I personally do not know of any standard. Our canteens in Bonn provide allergy information in a way that is easily parsable, and because this is important information for many guests, I think it would make sense to expose it in a way where applications could filter for certain contents.

For labelling, I think it would make most sense to rely on the corresponding EU regulation 1169/2011, Annex II. I have seen multiple restaurants use this numbering system (Bonn uses one derived from this ordering), and this is a comprehensive list of allergens that need to be labelled. Both cereals and nuts also need a second level of subdivision, which is usually done with added letters in the order of them within the regulation (wheat: a, rye: b, barley: c, and so on).

Our canteen also labels more contents, namely garlic and the type of meat used in the food, so ideally, the system would be able to also allow for additional labels. Additives are also sometimes listed as well.

As for the encoding of the information, my first instinct would be something like this:

<contents>
    <allergen>1b</allergen>
    <allergen>2</allergen>
    <allergen>8a</allergen>
    <additives>E 392</additives>
    <note>Schweinefleisch</note>
    <note>Knoblauch</note>
</contents>

The allergens are listed with their respective number. The additives can be listed using the E number. The notes are additional information provided by the canteen, intended for human-readable information.

@cmur2 cmur2 added the feed label Aug 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants