Skip to content

Commit

Permalink
Adding more bus routes to the dashboard! (#934)
Browse files Browse the repository at this point in the history
* Adding more bus routes to the dashboard!

* Add missing stop ids

* Adding missing stop ids
  • Loading branch information
devinmatte authored Jan 11, 2024
1 parent c05a643 commit c17003c
Show file tree
Hide file tree
Showing 24 changed files with 645 additions and 34 deletions.
14 changes: 13 additions & 1 deletion common/constants/baselines.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import type { BusRouteId, Line } from '../types/lines';

// These are manually chosen based off the peak *monthly* scheduled service. Selecting highest value "
export const PEAK_SCHEDULED_SERVICE = {
'line-red': 223,
Expand All @@ -17,12 +19,15 @@ export const PEAK_SPEED = {
};

// These are manually chosen based off the peak value. Need to be updated when all data is generated.
export const PEAK_RIDERSHIP = {
export const PEAK_RIDERSHIP: {
[key in Exclude<Line, 'line-bus' | 'line-commuter-rail'> | BusRouteId | 'DEFAULT']: number;
} = {
'line-red': 213703,
'line-orange': 169578,
'line-blue': 60129,
'line-green': 87148,
'1': 15272,
'4': 850,
'9': 7116,
'15': 6379,
'16': 6197,
Expand All @@ -34,15 +39,22 @@ export const PEAK_RIDERSHIP = {
'32': 10982,
'34': 6674,
'39': 11792,
'41': 2119,
'45': 3310,
'47': 5955,
'55': 816,
'57': 11284,
'6170170': 6988,
'66': 14505,
'71': 5789,
'73': 6616,
'77': 8015,
'85': 1189,
'86': 6850,
'89': 3963,
'91': 1942,
'92': 1459,
'104109': 8163,
'111': 11258,
'114116117': 12867,
'220221222': 3370,
Expand Down
91 changes: 91 additions & 0 deletions common/constants/bus_constants/104-109.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
{
"104/109": {
"type": "bus",
"direction": {
"0": "outbound",
"1": "inbound"
},
"stations": [
{
"stop_name": "Linden Square (Malden)",
"branches": ["109"],
"station": "lindn",
"order": 1,
"stops": {
"1": ["109-1-7412"],
"0": ["109-0-7412", "109-0-7417"]
}
},
{
"stop_name": "Malden Center Station",
"branches": ["104"],
"station": "malst",
"order": 1,
"stops": {
"1": ["104-1-53270"],
"0": ["104-0-53270"]
}
},
{
"stop_name": "Broadway Plaza @ Broadway",
"branches": ["109"],
"station": "brypl",
"order": 2,
"stops": {
"1": ["109-1-5481"],
"0": ["109-0-5524"]
}
},
{
"stop_name": "Ferry St @ Cross St",
"branches": ["104"],
"station": "fercr",
"order": 2,
"stops": {
"1": ["104-1-5347"],
"0": ["104-0-5361"]
}
},
{
"stop_name": "Glendale Square",
"branches": ["104", "109"],
"station": "glndl",
"order": 3,
"stops": {
"1": ["104-1-5354", "109-1-5488"],
"0": ["104-0-5518", "109-0-5518", "104-0-5517", "109-0-5517"]
}
},
{
"stop_name": "Everett Square",
"branches": ["104", "109"],
"station": "evrtc",
"order": 4,
"stops": {
"1": ["104-1-5496", "109-1-5496"],
"0": ["104-0-5695", "109-0-5695"]
}
},
{
"stop_name": "Sweester Circle",
"branches": ["104", "109"],
"station": "sweet",
"order": 5,
"stops": {
"1": ["104-1-5560", "109-1-5560"],
"0": ["104-0-5565", "109-0-5565"]
}
},
{
"stop_name": "Sullivan Square",
"branches": ["104", "109"],
"station": "sull",
"order": 6,
"stops": {
"1": ["104-1-2874", "109-1-2874"],
"0": ["104-0-2874", "109-0-2874"]
}
}
]
}
}
4 changes: 2 additions & 2 deletions common/constants/bus_constants/111.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
}
},
{
"stop_name": "Garfield Avenue & Clyde",
"stop_name": "Garfield Ave & Clyde",
"branches": null,
"station": "garfi",
"order": 2,
Expand Down Expand Up @@ -87,7 +87,7 @@
}
},
{
"stop_name": "Rutherford Avenue & Ramp",
"stop_name": "Rutherford Ave & Ramp",
"branches": null,
"station": "ruthf",
"order": 8,
Expand Down
4 changes: 2 additions & 2 deletions common/constants/bus_constants/16.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
}
},
{
"stop_name": "Columbia Road @ Washington Street",
"stop_name": "Columbia Road @ Washington St",
"branches": null,
"station": "cowas",
"order": 3,
Expand All @@ -37,7 +37,7 @@
}
},
{
"stop_name": "Columbia Road @ Quincy Street",
"stop_name": "Columbia Road @ Quincy St",
"branches": null,
"station": "coqui",
"order": 4,
Expand Down
14 changes: 7 additions & 7 deletions common/constants/bus_constants/17-19.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
}
},
{
"stop_name": "Geneva Avenue @ Bowdoin Street",
"stop_name": "Geneva Ave @ Bowdoin St",
"branches": ["19"],
"station": "genbo",
"order": 2,
Expand All @@ -37,7 +37,7 @@
}
},
{
"stop_name": "Geneva Avenue @ Columbia Road",
"stop_name": "Geneva Ave @ Columbia Road",
"branches": ["19"],
"station": "genco",
"order": 3,
Expand All @@ -57,7 +57,7 @@
}
},
{
"stop_name": "Edward Everett Square Columbia @ Massachusetts Avenue",
"stop_name": "Edward Everett Square Columbia @ Massachusetts Ave",
"branches": ["17"],
"station": "edevt",
"order": 4,
Expand Down Expand Up @@ -87,7 +87,7 @@
}
},
{
"stop_name": "Warren Street @ Boston Latin Academy",
"stop_name": "Warren St @ Boston Latin Academy",
"branches": ["19"],
"station": "latac",
"order": 5,
Expand All @@ -97,7 +97,7 @@
}
},
{
"stop_name": "Warren Street @ Walnut Avenue",
"stop_name": "Warren St @ Walnut Ave",
"branches": ["19"],
"station": "warwl",
"order": 6,
Expand All @@ -117,7 +117,7 @@
}
},
{
"stop_name": "Melnea Cass Boulevard @ Washington Street",
"stop_name": "Melnea Cass Boulevard @ Washington St",
"branches": ["19"],
"station": "melwa",
"order": 8,
Expand Down Expand Up @@ -157,7 +157,7 @@
}
},
{
"stop_name": "Brookline Avenue @ Park Drive",
"stop_name": "Brookline Ave @ Park Drive",
"branches": ["19"],
"station": "brkpk",
"order": 12,
Expand Down
4 changes: 2 additions & 2 deletions common/constants/bus_constants/21.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
}
},
{
"stop_name": "Dorchester Avenue @ Gallivan Boulevard",
"stop_name": "Dorchester Ave @ Gallivan Boulevard",
"branches": null,
"station": "dotga",
"order": 2,
Expand All @@ -37,7 +37,7 @@
}
},
{
"stop_name": "Morton Street @ Blue Hill Avenue",
"stop_name": "Morton St @ Blue Hill Ave",
"branches": null,
"station": "mortn",
"order": 4,
Expand Down
8 changes: 4 additions & 4 deletions common/constants/bus_constants/220-221-222.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
}
},
{
"stop_name": "Broad Street @ Middle Street",
"stop_name": "Broad St @ Middle St",
"branches": ["222"],
"station": "brmdl",
"order": 3,
Expand All @@ -47,7 +47,7 @@
}
},
{
"stop_name": "Otis Street & Downer Avenue",
"stop_name": "Otis St & Downer Ave",
"branches": ["220"],
"station": "otdow",
"order": 4,
Expand Down Expand Up @@ -77,7 +77,7 @@
}
},
{
"stop_name": "Washington Street @ Southern Artery",
"stop_name": "Washington St @ Southern Artery",
"branches": ["220", "221", "222"],
"station": "wassa",
"order": 7,
Expand All @@ -87,7 +87,7 @@
}
},
{
"stop_name": "McGrath Highway @ Washington Street",
"stop_name": "McGrath Highway @ Washington St",
"branches": ["220", "222"],
"station": "mgrwa",
"order": 8,
Expand Down
10 changes: 5 additions & 5 deletions common/constants/bus_constants/34.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
},
"stations": [
{
"stop_name": "Dedham Line (Washington Street)",
"stop_name": "Dedham Line (Washington St)",
"branches": null,
"station": "dline",
"order": 1,
Expand All @@ -27,7 +27,7 @@
}
},
{
"stop_name": "Stimson Street @ Washington Street",
"stop_name": "Stimson St @ Washington St",
"branches": null,
"station": "stims",
"order": 2,
Expand All @@ -37,7 +37,7 @@
}
},
{
"stop_name": "Washington Street @ West Boundary Road",
"stop_name": "Washington St @ West Boundary Road",
"branches": null,
"station": "wawbw",
"order": 3,
Expand All @@ -47,7 +47,7 @@
}
},
{
"stop_name": "Washington Street @ LaGrange Street",
"stop_name": "Washington St @ LaGrange St",
"branches": null,
"station": "walag",
"order": 4,
Expand All @@ -57,7 +57,7 @@
}
},
{
"stop_name": "Washington Street @ Metropolitan Avenue",
"stop_name": "Washington St @ Metropolitan Avenue",
"branches": null,
"station": "wamet",
"order": 5,
Expand Down
2 changes: 1 addition & 1 deletion common/constants/bus_constants/39.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
}
},
{
"stop_name": "Heath Street Loop",
"stop_name": "Heath St Loop",
"branches": null,
"station": "heath",
"order": 4,
Expand Down
Loading

0 comments on commit c17003c

Please sign in to comment.