FaisalBinAhmed / MVGFahrinfo

Get up-to-date departure times for Munich public transport in your terminal.
https://crates.io/crates/mvgfahrinfo
MIT License
77 stars 4 forks source link

Question regarding mvg api #6

Closed bq-wrongway closed 11 months ago

bq-wrongway commented 11 months ago

Hi, not an issue but more of question/ suggestion.

Where did you find mvg api endpoints? I did not manage to find it ob their website, also would is be possible to add a tracker to certain line, for example to see if there are issues with S2 or U2.

FaisalBinAhmed commented 11 months ago

There's this messages field under DepartureInfo struct you can look at. Usually MVG posts line related updates there, if any. I haven't used it in the app yet.

What you are describing is maybe not available as an API. Perhaps you have to parse it manually from their status website.

There's a python library which documents many of these endpoints; you can look here: https://python-mvg-departures.readthedocs.io/en/latest/