Skip to content

Commit

Permalink
Foothill transit route id fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kylerchin committed Sep 23, 2024
1 parent cb5546c commit d2dc080
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -578,6 +578,14 @@ pub fn route_id_transform(feed_id: &str, route_id: String) -> String {
route_id.to_owned()
}
}
"f-foothilltransit~rt" => {
//if the route id is 5 digits, use the last 3
if route_id.len() == 5 {
route_id.chars().skip(2).collect()
} else {
route_id
}
}
_ => route_id,
}
}
Expand Down

0 comments on commit d2dc080

Please sign in to comment.