public-transport / hafas-client

JavaScript client for HAFAS public transport APIs.
ISC License
263 stars 52 forks source link

Why does trip() require lineName? #269

Closed yu-re-ka closed 1 year ago

yu-re-ka commented 1 year ago

It doesn't seem to matter what I pass there, is there some example where the tripId is not sufficient, maybe it is different on some endpoints?

derhuerst commented 1 year ago

It used to matter: At some point in the past, HAFAS didn't respond to trip() calls with the proper line name, except if you passed it in.

This is not the case anymore, the lineName parameter just exists for backwards-compatibility, and will be removed in hafas-client@6 (#265).

derhuerst commented 1 year ago

Please re-open if you have more related questions.