Second set of commits for realtime support

This commit is contained in:
2026-06-13 08:06:12 +01:00
parent 40f8c46d80
commit 8496cfd72f
3 changed files with 52 additions and 12 deletions
+7
View File
@@ -2,6 +2,7 @@ use std::collections::{HashMap, HashSet};
use gtfs_structures::{Agency, Calendar, CalendarDate, RawStopTime, RawTrip, Route, Stop};
use log::error;
use serde::{Serialize, Deserialize};
use serde_json::value;
use zip::result::ZipError;
@@ -28,6 +29,12 @@ impl From<ZipError> for Error {
}
}
impl From<serde_json::Error> for Error {
fn from(value: serde_json::Error) -> Self {
return Error { _message: value.to_string() }
}
}
// This is to store the preferences for the GTFS(-R) side of the code.
#[derive(Debug, PartialEq, Serialize, Deserialize)]