summaryrefslogtreecommitdiff
path: root/src/onboard
diff options
context:
space:
mode:
authorstuebinm2024-09-09 15:47:47 +0200
committerstuebinm2024-09-09 15:47:47 +0200
commit0a3aad3a4e31049b36832827a5b3afff1334bff8 (patch)
treec8235aaae7a8ee564741161ab0d9fd1fb8b3c81c /src/onboard
parentb6080abc5661f9323593944f5701d7dd7597afb9 (diff)
do not require ds100 codes in API responses
these are not present when other hafas backends than the DB one were used for the trip's checkin.
Diffstat (limited to '')
-rw-r--r--src/onboard/iceportal.rs4
-rw-r--r--src/onboard/zugportal.rs4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/onboard/iceportal.rs b/src/onboard/iceportal.rs
index bde0b1f..55b35e7 100644
--- a/src/onboard/iceportal.rs
+++ b/src/onboard/iceportal.rs
@@ -75,8 +75,8 @@ impl IsStation for Stop {
self.timetable.scheduled_arrival_time.as_ref()
}
- fn ds100(&self) -> &str {
- "??"
+ fn ds100(&self) -> Option<&str> {
+ None
}
}
diff --git a/src/onboard/zugportal.rs b/src/onboard/zugportal.rs
index c649107..fe083ef 100644
--- a/src/onboard/zugportal.rs
+++ b/src/onboard/zugportal.rs
@@ -67,8 +67,8 @@ impl IsStation for Stop {
self.arrival_time.as_ref().map(|t| &t.predicted)
}
- fn ds100(&self) -> &str {
- "??"
+ fn ds100(&self) -> Option<&str> {
+ None
}
}