Skip to content

Commit

Permalink
fix: Add Saturday, Sunday Haverhill Line services
Browse files Browse the repository at this point in the history
  • Loading branch information
jfabi committed Sep 3, 2023
1 parent 9443000 commit c341d46
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 19 deletions.
19 changes: 0 additions & 19 deletions apps/state/config/config.exs
Original file line number Diff line number Diff line change
Expand Up @@ -368,25 +368,6 @@ config :state, :stops_on_route,
"place-jfk"
]
]
# ,
# {"CR-Haverhill", 0} => [
# [
# "place-north",
# "place-ogmnl",
# "place-WR-0062",
# "place-WR-0067",
# "place-WR-0075",
# "place-WR-0085",
# "place-WR-0099",
# "place-NHRML-0127",
# "place-WR-0120",
# "place-WR-0205",
# "place-WR-0228",
# "place-WR-0264",
# "place-WR-0325",
# "place-WR-0329"
# ]
# ]
}

# Stops that should never be considered to be "on" a given route
Expand Down
42 changes: 42 additions & 0 deletions apps/state/lib/state/stops_on_route.ex
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,48 @@ defmodule State.StopsOnRoute do
]}
]

defp gather_explicit_overrides(%{id: "CR-Haverhill"}, 0),
do: [
{"CR-Haverhill", 0, :all, "SPR23-N-Sa-37", true,
[
"place-north",
"place-ogmnl",
"place-WR-0062",
"place-WR-0067",
"place-WR-0075",
"place-WR-0085",
"place-WR-0099",
"place-NHRML-0127",
"place-WR-0120",
"place-WR-0205",
"place-WR-0228",
"place-WR-0264",
"place-WR-0325",
"place-WR-0329"
]}
]

defp gather_explicit_overrides(%{id: "CR-Haverhill"}, 0),
do: [
{"CR-Haverhill", 0, :all, "SPR23-N-Su-37", true,
[
"place-north",
"place-ogmnl",
"place-WR-0062",
"place-WR-0067",
"place-WR-0075",
"place-WR-0085",
"place-WR-0099",
"place-NHRML-0127",
"place-WR-0120",
"place-WR-0205",
"place-WR-0228",
"place-WR-0264",
"place-WR-0325",
"place-WR-0329"
]}
]

defp gather_explicit_overrides(_, _), do: []

defp do_gather_direction_group(route, global_order, {group_key, trip_group}) do
Expand Down

0 comments on commit c341d46

Please sign in to comment.