1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
// ordered list of G stops
export const gStops = [
{
"name": "Court Sq",
"id": "G22",
},
{
"name": "21 St",
"id": "G24",
},
{
"name": "Greenpoint Av",
"id": "G26",
},
{
"name": "Nassau Av",
"id": "G28",
},
{
"name": "Metropolitan Av-Lorimer St",
"id": "G29",
},
{
"name": "Broadway",
"id": "G30",
},
{
"name": "Flushing Av",
"id": "G31",
},
{
"name": "Myrtle-Willoughby Avs",
"id": "G32",
},
{
"name": "Bedford-Nostrand Avs",
"id": "G33",
},
{
"name": "Classon Av",
"id": "G34",
},
{
"name": "Clinton-Washington Avs",
"id": "G35",
},
{
"name": "Fulton St",
"id": "G36",
},
{
"name": "Hoyt-Schermerhorn Sts",
"id": "A42",
},
{
"name": "Bergen St",
"id": "F20",
},
{
"name": "Carroll St",
"id": "F21",
},
{
"name": "Smith-9 Sts",
"id": "F22",
},
{
"name": "4 Av-9 St",
"id": "F23",
},
{
"name": "7 Av",
"id": "F24",
},
{
"name": "15 St-Prospect Park",
"id": "F25",
},
{
"name": "Fort Hamilton Pkwy",
"id": "F26",
},
{
"name": "Church Av",
"id": "F27",
},
];
// const gEntity = entity.filter(e =>
// e.alert.informed_entity[0].agency_id === "MTASBWY" && e.alert.informed_entity[0].route_id === "G"
// );
// console.log(
// {
// gEntity: gEntity.map((entity) => {
// return {
// "entity": JSON.stringify(Object.keys(entity.alert["transit_realtime.mercury_alert"])),
// "desc": JSON.stringify(entity.alert.description_text),
// "time": JSON.stringify(
// entity.alert["transit_realtime.mercury_alert"]["human_readable_active_period"].translation,