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

Support more canteens #119

Open
fwcd opened this issue Nov 7, 2022 · 0 comments
Open

Support more canteens #119

fwcd opened this issue Nov 7, 2022 · 0 comments
Labels
improvement An improvement to an existing feature

Comments

@fwcd
Copy link
Owner

fwcd commented Nov 7, 2022

It would be cool if we could support more canteens/mensas (other than those on the CAU campus). Since we already integrate swift-mensa, which supports many German university canteens via the OpenMensa API this should be mostly a matter of improving the (currently hardcoded) mapping from names to canteen ids. Some ideas:

  • Perhaps either MensaCommand (or another command) could be used to add 'aliases' for canteens dynamically? These aliases could be persisted in a file like local/mensas.json (or similar).
  • Perhaps we could even use the built-in Geocoders to query the OpenMensa API for canteens near that location (and ideally cache the results too)
@fwcd fwcd added the improvement An improvement to an existing feature label Nov 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement An improvement to an existing feature
Projects
None yet
Development

No branches or pull requests

1 participant