Skip to content

Commit

Permalink
removing old nyc route id bodge
Browse files Browse the repository at this point in the history
  • Loading branch information
kylerchin committed Sep 23, 2024
1 parent d2dc080 commit 9fde78b
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -557,20 +557,6 @@ pub fn parse_gtfs_rt_message(

pub fn route_id_transform(feed_id: &str, route_id: String) -> String {
match feed_id {
"f-mta~nyc~rt~lirr" | "f-dr5-mtanyclirr" => {
if !route_id.contains("lirr") {
format!("lirr{}", route_id)
} else {
route_id.to_owned() // Return unmodified route_id if it contains "lirr"
}
}
"f-mta~nyc~rt~mnr" | "f-dr7-mtanyc~metro~north" => {
if !route_id.contains("mnr") {
format!("mnr{}", route_id)
} else {
route_id.to_owned() // Return unmodified route_id if it contains "mnr"
}
}
"f-dp3-pace~rt" => {
if !route_id.contains("-367") {
format!("{}-367", route_id)
Expand Down

0 comments on commit 9fde78b

Please sign in to comment.