Closed dabund24 closed 7 months ago
This is a good idea and falls nicely into the project's scope, thanks for proposing it!
When creating a PR, please make sure to include a parse test like the {a,d}TZOffset
one. In order to obtain the required full HAFAS response ({a,d}TZOffset
equivalent), run hafas-client with DEBUG=hafas-client
, so that it will print the raw HAFAS responses (and requests, but you're not interested in copying them) to stderr. (You can use ./tools/debug-cli/cli.js db …
to find a connection that corresponds to your screenshot.)
Fixed in #304, published as hafas-client@6.2.0
. 🎉
Just like it's implemented for cancelled stopovers, there could be an attribute for additional stopovers. I think an if-statement in
parse/stopover.js
that checks for theisAdd
attribute to be set to true will do. Here is a screenshot from db navigator and the corresponding stopovers response from hafas (db profile):I can create a pr if nothing speaks against implementing this :)