Skip to content

Commit

Permalink
Add J/Z express to long term service change routing overrides
Browse files Browse the repository at this point in the history
  • Loading branch information
blahblahblah- committed Jul 5, 2024
1 parent 55b3fb8 commit 6dadbde
Showing 1 changed file with 315 additions and 1 deletion.
316 changes: 315 additions & 1 deletion app/models/long_term_service_change_routing_manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1035,7 +1035,321 @@ class LongTermServiceChangeRoutingManager
],
south: [ # No changes to timetable for R southbound
],
}
},
"J" => {
north: [
LongTermServiceChangeRegularRouting.new("J", :north, "13:12:00", # N45R
{
"M23" => "16:48:30",
"M22" => "16:50:30",
"M21" => "16:52:00",
"M20" => "16:54:00",
"M19" => "16:56:00",
"M18" => "16:58:00",
"M16" => "17:05:30",
"M11" => "17:09:30",
"J31" => "17:11:30",
"J30" => "17:13:00",
"J29" => "17:14:30",
"J28" => "17:16:00",
"J27" => "17:17:30",
"J24" => "17:19:30",
"J23" => "17:21:00",
"J22" => "17:22:30",
"J21" => "17:23:30",
"J20" => "17:25:30",
"J19" => "17:27:30",
"J17" => "17:28:30",
"J16" => "17:30:00",
"J15" => "17:32:00",
"J14" => "17:33:30",
"J13" => "17:35:30",
"J12" => "17:37:00",
"G06" => "17:41:00",
"G05" => "17:42:00",
},
true, false, false),
LongTermServiceChangeRegularRouting.new("J", :north, "16:59:30", # N52R (skip-stop)
{
"M23" => "16:59:30",
"M22" => "17:01:30",
"M21" => "17:03:30",
"M20" => "17:05:30",
"M19" => "17:08:00",
"M18" => "17:10:00",
"M16" => "17:17:30",
"M11" => "17:21:30",
"J31" => "17:23:30",
"J29" => "17:26:00",
"J27" => "17:28:30",
"J24" => "17:30:00",
"J22" => "17:33:00",
"J20" => "17:36:00",
"J19" => "17:38:00",
"J17" => "17:39:00",
"J16" => "17:40:30",
"J15" => "17:42:30",
"J14" => "17:44:00",
"J13" => "17:46:00",
"J12" => "17:47:30",
"G06" => "17:51:00",
"G05" => "17:52:00",
},
true, false, false),
LongTermServiceChangeRegularRouting.new("J", :north, "17:51:30", # N45R
{
"M23" => "19:32:00",
"M22" => "19:33:30",
"M21" => "19:35:00",
"M20" => "19:37:00",
"M19" => "19:39:00",
"M18" => "19:41:00",
"M16" => "19:48:30",
"M11" => "19:52:30",
"J31" => "19:54:30",
"J30" => "19:56:00",
"J29" => "19:57:30",
"J28" => "19:59:00",
"J27" => "20:00:30",
"J24" => "20:02:30",
"J23" => "20:04:00",
"J22" => "20:05:30",
"J21" => "20:06:30",
"J20" => "20:08:30",
"J19" => "20:10:30",
"J17" => "20:11:30",
"J16" => "20:13:00",
"J15" => "20:15:00",
"J14" => "20:16:30",
"J13" => "20:18:30",
"J12" => "20:20:00",
"G06" => "20:24:00",
"G05" => "20:25:00",
},
true, false, false),
LongTermServiceChangeRegularRouting.new("J", :north, "19:40:00", # N41R
{
"M23" => nil,
"M22" => nil,
"M21" => nil,
"M20" => nil,
"M19" => nil,
"M18" => nil,
"M16" => nil,
"M14" => nil,
"M13" => nil,
"M12" => nil,
"M11" => nil,
"J31" => nil,
"J30" => nil,
"J29" => nil,
"J28" => nil,
"J27" => nil,
"J24" => nil,
"J23" => nil,
"J22" => nil,
"J21" => nil,
"J20" => nil,
"J19" => nil,
"J17" => nil,
"J16" => nil,
"J15" => nil,
"J14" => nil,
"J13" => nil,
"J12" => nil,
"G06" => nil,
"G05" => nil,
},
true, false, false),
],
south: [
LongTermServiceChangeRegularRouting.new("J", :south, "06:32:00", # S13R
{
"G05" => "07:07:00",
"G06" => "07:08:00",
"J12" => "07:12:00",
"J13" => "07:13:30",
"J14" => "07:15:30",
"J15" => "07:17:00",
"J16" => "07:19:00",
"J17" => "07:20:30",
"J19" => "07:22:00",
"J20" => "07:24:00",
"J21" => "07:25:30",
"J22" => "07:27:00",
"J23" => "07:28:30",
"J24" => "07:30:00",
"J27" => "07:32:00",
"J28" => "07:33:30",
"J29" => "07:35:00",
"J30" => "07:36:30",
"J31" => "07:38:00",
"M11" => "07:40:00",
"M16" => "07:44:00",
"M18" => "07:51:30",
"M19" => "07:53:00",
"M20" => "07:54:30",
"M21" => "07:56:00",
"M22" => "07:57:00",
"M23" => "07:58:30",
},
true, false, false),
LongTermServiceChangeRegularRouting.new("J", :south, "07:14:30", # S25R (skip-stop)
{
"G05" => "08:17:30",
"G06" => "08:18:30",
"J12" => "08:22:00",
"J13" => "08:23:30",
"J14" => "08:25:30",
"J15" => "08:27:00",
"J16" => "08:29:00",
"J17" => "08:30:30",
"J19" => "08:31:30",
"J20" => "08:33:30",
"J22" => "08:36:30",
"J24" => "08:39:30",
"J27" => "08:41:00",
"J29" => "08:43:30",
"J31" => "08:46:00",
"M11" => "08:47:30",
"M16" => "08:51:30",
"M18" => "08:59:00",
"M19" => "09:00:30",
"M20" => "09:02:30",
"M21" => "09:04:00",
"M22" => "09:05:30",
"M23" => "09:07:00",
},
true, false, false),
LongTermServiceChangeRegularRouting.new("J", :south, "08:22:00", # S13R
{
"G05" => "12:25:00",
"G06" => "12:26:00",
"J12" => "12:30:00",
"J13" => "12:31:30",
"J14" => "12:33:30",
"J15" => "12:35:00",
"J16" => "12:37:00",
"J17" => "12:38:30",
"J19" => "12:39:30",
"J20" => "12:41:30",
"J21" => "12:43:30",
"J22" => "12:44:30",
"J23" => "12:46:00",
"J24" => "12:47:30",
"J27" => "12:49:30",
"J28" => "12:53:00",
"J29" => "12:54:30",
"J30" => "12:56:00",
"J31" => "12:57:30",
"M11" => "12:59:00",
"M16" => "13:03:00",
"M18" => "13:10:30",
"M19" => "13:12:00",
"M20" => "13:13:30",
"M21" => "13:15:00",
"M22" => "13:16:00",
"M23" => "13:17:30",
},
true, false, false),
LongTermServiceChangeRegularRouting.new("J", :south, "12:34:00", # S12R
{
"G05" => nil,
"G06" => nil,
"J12" => nil,
"J13" => nil,
"J14" => nil,
"J15" => nil,
"J16" => nil,
"J17" => nil,
"J19" => nil,
"J20" => nil,
"J21" => nil,
"J22" => nil,
"J23" => nil,
"J24" => nil,
"J27" => nil,
"J28" => nil,
"J29" => nil,
"J30" => nil,
"J31" => nil,
"M11" => nil,
"M12" => nil,
"M13" => nil,
"M14" => nil,
"M16" => nil,
"M18" => nil,
"M19" => nil,
"M20" => nil,
"M21" => nil,
"M22" => nil,
"M23" => nil,
},
true, false, false),
],
},
"Z" => {
north: [
LongTermServiceChangeRegularRouting.new("Z", :north, "16:54:30", # N51R
{
"M23" => "17:45:00",
"M22" => "17:47:00",
"M21" => "17:49:00",
"M20" => "17:51:00",
"M19" => "17:53:00",
"M18" => "17:55:00",
"M16" => "18:02:30",
"M11" => "18:06:30",
"J30" => "18:09:30",
"J28" => "18:12:00",
"J27" => "18:13:00",
"J24" => "18:14:30",
"J23" => "18:16:00",
"J21" => "18:18:30",
"J20" => "18:20:30",
"J19" => "18:22:00",
"J17" => "18:23:00",
"J16" => "18:24:30",
"J15" => "18:26:00",
"J14" => "18:27:30",
"J13" => "18:29:00",
"J12" => "18:30:30",
"G06" => "18:34:30",
"G05" => "18:35:30",
},
true, false, false),
],
south: [
LongTermServiceChangeRegularRouting.new("Z", :south, "07:21:00", # S26R
{
"G05" => "08:12:30",
"G06" => "08:13:30",
"J12" => "08:17:30",
"J13" => "08:19:00",
"J14" => "08:20:30",
"J15" => "08:22:00",
"J16" => "08:23:30",
"J17" => "08:25:00",
"J19" => "08:26:00",
"J20" => "08:27:30",
"J21" => "08:29:30",
"J23" => "08:32:00",
"J24" => "08:33:30",
"J27" => "08:35:00",
"J28" => "08:36:00",
"J30" => "08:38:30",
"M11" => "08:41:30",
"M16" => "08:45:30",
"M18" => "08:53:00",
"M19" => "08:54:30",
"M20" => "08:56:30",
"M21" => "08:58:00",
"M22" => "08:59:30",
"M23" => "09:01:00",
},
true, false, false),
],
},
}

DAY_OF_WEEK_OVERRIDE = {
Expand Down

0 comments on commit 6dadbde

Please sign in to comment.