public-transport / hafas-client

JavaScript client for HAFAS public transport APIs.
ISC License
269 stars 54 forks source link

With hafas-client@6 and db profile, getting earlier journeys is broken #282

Open yu-re-ka opened 1 year ago

yu-re-ka commented 1 year ago

earlierRef is always undefined

$ node p/db/example.js | grep earlier
  earlierRef: undefined,

Bisected to 3c17678d9d0ed90c6bcf13a34670c48ce73f1078

derhuerst commented 1 year ago

That's a shame that using true realtime routing and outCtxScrB (earlierRef) is apparently not possible. 😔

Because both options are valuable, depending on one's use case, I think we should make the routing mode configurable (e.g. a boolean opt.realtimeRouting) and document the trade-off.

PR welcome!