Skip to content

Commit

Permalink
GTFS Data Update to v202312040 (#30)
Browse files Browse the repository at this point in the history
* Update SEPTA GTFS to v202312040

* Fixed Regional Rail stops for new GTFS
  • Loading branch information
StefanBossbaly authored Dec 12, 2023
1 parent 7b86493 commit 60731dd
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,9 @@ pub enum RegionalRailStop {
)]
PennMedicineStation,

#[strum(serialize = "30th St Lower Level")]
Gray30thStreetLowerLevel,

// Unknown Stop
#[strum(default)]
Unknown(String),
Expand Down Expand Up @@ -565,6 +568,7 @@ impl RegionalRailStop {
Self::Cheltenham => Ok(90813),
Self::Ryers => Ok(90814),
Self::FoxChase => Ok(90815),
Self::Gray30thStreetLowerLevel => Ok(91004),
Self::Unknown(ref station) => {
Err(Error::UnknownRegionalRailStation(station.to_string()))
}
Expand Down Expand Up @@ -729,6 +733,7 @@ impl RegionalRailStop {
Self::Cheltenham => Ok((40.0580556, -75.0927778)),
Self::Ryers => Ok((40.0641667, -75.0863889)),
Self::FoxChase => Ok((40.0763889, -75.0833333)),
Self::Gray30thStreetLowerLevel => Ok((39.9591667, -75.1883333)),
Self::Unknown(ref station) => {
Err(Error::UnknownRegionalRailStation(station.to_string()))
}
Expand Down
4 changes: 2 additions & 2 deletions tests/gtfs_data/septa_bus.zip
Git LFS file not shown
4 changes: 2 additions & 2 deletions tests/gtfs_data/septa_rail.zip
Git LFS file not shown

0 comments on commit 60731dd

Please sign in to comment.