public-transport / db-hafas

JavaScript client for the Deutsche Bahn HAFAS API.
https://github.com/public-transport/db-hafas
ISC License
75 stars 5 forks source link

When getting a route, some evaIDs are not `main` #10

Closed lightsprint09 closed 7 years ago

lightsprint09 commented 7 years ago

When getting a route from Heilbronn -> Westerland(Sylt) (hafas.journeys("8000157", "8006369"))

Hamburg-Altona has the evaId 8002553 but we expect 8098553, because 8098553 is marked as isMain in StaDa

derhuerst commented 7 years ago

Correct me if I'm wrong, but this looks a lot like it's HAFAS' fault. db-hafas does not replace any IDs, it merely parses the data.

lightsprint09 commented 7 years ago

ok.

I opened another issue in db-stations to work around this issue ;)

derhuerst commented 7 years ago

is there a way to communicate this inside DB? right now, the company seems like a black hole of opportunities to change something.

lightsprint09 commented 7 years ago

I am not sure.