Open mueller-ma opened 4 months ago
Would be nice if you can come up with a fixed link
I found two websites:
Which one would you prefer?
Ping @soenkekueper can you comment?
I'm not really happy with both of them, because as mentioned, the data ist very old and the origin is not the DB itself.
I would prefer (a larger) change:
There is another DB api that provides information about stations, including the eva number. It provides a REST endpoint that allows searching by station name:
https://developers.deutschebahn.com/db-api-marketplace/apis/product/stada/api/113501#/StaDaStationData_290/operation/%2Fstations/get
So i see two options here:
The first option is a little bit tricky, you've to register the app and know a bit about json, because the result is plain json. But it dosn't require addon changes.
The second is more convienient for openhab-users, but requires addon changes (does anything like this already exist?). The users must also register the api in db-portal so that openhab can use it.
In the docs there's a link "Haltestellendaten" which leads to deutschebahn.de, but to a 404 page.