srehwald / eat-api

Simple static API for some (student) food places in Munich.
https://srehwald.github.io/eat-api/
MIT License
14 stars 20 forks source link

[Feature] Command for all available canteens #10

Closed COM8 closed 5 years ago

COM8 commented 6 years ago

A command that returns all available canteens in a Json array would be great to automate the process of requesting all menus for all canteens.

Examle output:

[ { "name":"Mensa Arcisstraße", "address":"Arcisstr. 17, München", "latitude":"48.147312", "longitude":"11.567229" }, { "name":"Mensa Garching", "address":"Lichtenbergstr. 2, Garching", "latitude":"48.267509", "longitude":"11.671278" }, [...] ]

srehwald commented 6 years ago

would you suggest to also host the output statically on gh-pages (same as the menus) or just a command for the cli?

COM8 commented 6 years ago

Sure why not. Although I tend to use your tool on my own server. But I'm probably not the only person that will use this feature for automatic menu requests.😉

COM8 commented 6 years ago

I've created a .json for all available canteens: https://home.in.tum.de/~sauterf/dist/canteens.json

srehwald commented 6 years ago

Thanks, that makes it easier for me. I am planning to implement it in a way that the user specifies a path to a file which the locations-json will be written to. Does this meet your expectations?

COM8 commented 6 years ago

Yes it does.