api.direkt.bahn.guru icon indicating copy to clipboard operation
api.direkt.bahn.guru copied to clipboard

Code used doesn't seem to be UIC

Open fbarbe00 opened this issue 1 year ago • 0 comments

It looks like the code used to retrieve the station is not a UIC station code (which is what the error message of the api returns - try https://api.direkt.bahn.guru/1, but rather a DB internal code (see this wikipedia page - only in German).

I found that to be the case testing out different stations from the trainline stations dataset available on github: https://github.com/trainline-eu/stations (the column name is db_id, or oebb_id).

FIX: Change error message from "id must be a uic station code" to "id must be a DB station id"

fbarbe00 avatar Oct 25 '24 16:10 fbarbe00