Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support ÖBB-style JIDs & fix #6 #7

Merged
merged 1 commit into from
Feb 21, 2024
Merged

Conversation

deingithub
Copy link
Contributor

as i've detailed in #6, the issue is that ÖBB uses much longer HAFAS IDs that don't share the DB HAFAS format. i've added logic to check if the current ID looks like an ÖBB style ID, and if so, extract the $date_ref value for cross-midnight correction from the right spot.
i haven't tested this late at night yet (not sure if that's even necessary?) but testing with --date and --time seems to confirm that the library can process cross-midnight journeys again:
Screenshot from 2024-02-21 11-13-36
Screenshot from 2024-02-21 11-14-33
(for debugging i added the date to departure times, this is not part of the patch)

@derf derf merged commit f17a6b7 into derf:main Feb 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants