MarkusH / bvg-grabber

Querying the upcoming public transport departures in Berlin
BSD 3-Clause "New" or "Revised" License
28 stars 6 forks source link

API Endpoint #20

Closed extroversiv closed 3 years ago

extroversiv commented 3 years ago

Hi there, I think in actualdeparture.py the api endpoint for realtime needs to be changed to ACTUAL_API_ENDPOINT = 'https://mobil.bvg.de/Fahrinfo/bin/stboard.bin/dox?ld=0.1&boardType=depRT' With the provided url 'https://mobil.bvg.de/Fahrinfo/bin/stboard.bin/dox?ld=0.1' it returns the planned (scheduled) and not the actual times. Or am I using it wrong? Michael

cstruck commented 3 years ago

looks correct to me. Seems that they've change id

cstruck commented 3 years ago

the endpoint should now work correctly again, thanks for the hint.

derhuerst commented 3 years ago

(sorry for hijacking this Issue)

I would like to point out that there is another BVG API that has been very stable in the past years: The HAFAS API used by the mobile app. It provides all the data that their app shows, and is reasonably well reverse-engineered by now.

There are several open source HAFAS API clients:

AFAIR all of these support the BVG endpoint out-of-the-box.