From 4e26fbd1f83c322ec56ce4c956f97c01e82878a9 Mon Sep 17 00:00:00 2001 From: Kyler Chin <7539174+kylerchin@users.noreply.github.com> Date: Sat, 25 Jan 2025 14:27:19 -0800 Subject: [PATCH] add sete agglopole --- Cargo.lock | 18 +++++++++--------- feeds/data.gouv.fr.dmfr.json | 28 ++++++++++++++++++++++++++++ src/check/check.rs | 4 ++-- 3 files changed, 39 insertions(+), 11 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 0e733595f..f2f2432af 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1,6 +1,6 @@ # This file is automatically @generated by Cargo. # It is not intended for manual editing. -version = 3 +version = 4 [[package]] name = "allocator-api2" @@ -10,9 +10,9 @@ checksum = "683d7910e743518b0e34f1186f92494becacb047c7b6bf616c96772180fef923" [[package]] name = "dmfr" -version = "0.2.1" +version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "77e2bf91459fed5778f450c4d3c75fd741bf5eb147acf04fac430e33fbfd5355" +checksum = "14b79a83884d85952142287f51bab8f54e5b812a5a8a7b5fd0a991faf39489c9" dependencies = [ "regress", "serde", @@ -74,9 +74,9 @@ dependencies = [ [[package]] name = "regress" -version = "0.10.2" +version = "0.10.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4f56e622c2378013c6c61e2bd776604c46dc1087b2dc5293275a0c20a44f0771" +checksum = "78ef7fa9ed0256d64a688a3747d0fef7a88851c18a5e1d57f115f38ec2e09366" dependencies = [ "hashbrown", "memchr", @@ -110,9 +110,9 @@ dependencies = [ [[package]] name = "serde_json" -version = "1.0.135" +version = "1.0.137" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2b0d7ba2887406110130a978386c4e1befb98c674b4fba677954e4db976630d9" +checksum = "930cfb6e6abf99298aaad7d29abbef7a9999a9a8806a40088f55f0dcec03146b" dependencies = [ "itoa", "memchr", @@ -142,6 +142,6 @@ dependencies = [ [[package]] name = "unicode-ident" -version = "1.0.14" +version = "1.0.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "adb9e6ca4f869e1180728b7950e35922a7fc6397f7b641499e8f3ef06e50dc83" +checksum = "11cd88e12b17c6494200a9c1b683a04fcac9573ed74cd1b62aeb2727c5592243" diff --git a/feeds/data.gouv.fr.dmfr.json b/feeds/data.gouv.fr.dmfr.json index 753529d78..933938b4f 100644 --- a/feeds/data.gouv.fr.dmfr.json +++ b/feeds/data.gouv.fr.dmfr.json @@ -46,6 +46,34 @@ "url": "https://transport.data.gouv.fr/datasets/parcours-arrets-et-horaires-theoriques-du-reseau-de-transport-citura-de-la-communaute-urbaine-du-grand-reims-gtfs/" } }, + { + "id": "f-sete~agglopole~mobilite~fr", + "spec": "gtfs", + "urls": { + "static_current": "https://drive.google.com/uc?export=download&id=1JPmGimO4tfQpzL8A0ixYnYrPDehYILWn" + }, + "operators": [ + { + "name": "Sète Agglopôle Mobilité", + "onestop_id": "o-sete~agglopole~mobilite~fr", + "website": "https://www.mobilite.agglopole.fr/", + "associated_feeds": [ + { + "feed_onestop_id": "f-sete~agglopole~mobilite~fr~rt" + } + ] + } + ] + }, + { + "id": "f-sete~agglopole~mobilite~fr~rt", + "spec": "gtfs-rt", + "urls": { + "realtime_trip_updates": "https://sete.ceccli.com/gtfs/TripUpdates.pb", + "realtime_vehicle_positions": "https://sete.ceccli.com/gtfs/VehiclePositions.pb", + "realtime_alerts": "https://sete.ceccli.com/gtfs/Alerts.pb" + } + }, { "id": "f-dunkerque~fr", "spec": "gtfs", diff --git a/src/check/check.rs b/src/check/check.rs index 4555dd72d..e9b3642c8 100644 --- a/src/check/check.rs +++ b/src/check/check.rs @@ -35,7 +35,7 @@ fn main() -> Result<(), Box> { } match is_err { - true => Ok(()), - false => Err(Box::new(std::io::Error::from(std::io::ErrorKind::InvalidData))) + true => Err(Box::new(std::io::Error::from(std::io::ErrorKind::InvalidData))), + false => Ok(()) } } \ No newline at end of file