Open marians opened 8 years ago
Got it!
Die Deutsche Bahn stellt [erstmals] über eine offene Schnittstelle für den Zugriff auf ihre Fahrplandaten[bank] zur Verfügung - [zunächst] eingeschränkt auf den SOLL-Fahrplan des Fernverkehrs.
So no regional stations, and no departure boards for now?
Correct. This interface is limited to long-distance trains and stations at the moment.
Check this (non open data) interface:
Found a similar issue with Berlin, but I don't think this time has to do with regional trains.
https://open-api.bahn.de/bin/rest.exe/location.name?authKey=<KEY>&lang=de&input=Berlin&format=json
Finds:
{
"name":"Berlin Hbf",
"lon":"13.369548",
"lat":"52.525589",
"id":"008011160"
}
But not: Berlin Hbf (tief) - id: 8098160
However many routes are actually going through Berlin Hbf (tief). Or am I doing something wrong?
When searching my home station using this request
https://open-api.bahn.de/bin/rest.exe/location.name?authKey=xxx&lang=de&input=R%C3%B6srath&format=json
I was surprised to not find it in the results, despite the fact that there exists one station with the exact name
Rösrath
(ID008005134
) and several withRösrath
as part of the name.The response returned was