summaryrefslogtreecommitdiff
path: root/src/traits.rs (unfollow)
Commit message (Collapse)AuthorFilesLines
2024-09-09print less formatting errors in timesHEADmainstuebinm1-8/+18
these used to go wrong in case there was no real-time info on departure times. Instead traveltext now falls back on scheduled departure times if no real-time info is available. These still fail sometimes (at exit-only stops both appear to be unset on the oebb hafas), but it's a lot better than what was before. Also I've observed travelynx returning actual null values for missing time stamps now, so the old hack of checking if timestamp = unix epoch and considering that "unknown" might no longer be necessary, but I'm keeping it around just in case.
2024-09-09do not require ds100 codes in API responsesstuebinm1-2/+2
these are not present when other hafas backends than the DB one were used for the trip's checkin.
2022-11-28handle unknown times at stationsstuebinm1-3/+11
(travelynx sends these as the literal epoch value, which led to really confusing results, printing exactly the time zone offset as arrival time)
2022-02-09existential types in rust are weirdstuebinm1-0/+34
… lots and lots of traits …