-
Notifications
You must be signed in to change notification settings - Fork 0
/
station.go
170 lines (168 loc) · 2.55 KB
/
station.go
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
package septa
// Stations is the list of valid station names for next to arrive
var Stations = []string{
"9th St",
"30th Street Station",
"49th St",
"Airport Terminal A",
"Airport Terminal B",
"Airport Terminal C-D",
"Airport Terminal E-F",
"Allegheny",
"Allen Lane",
"Ambler",
"Angora",
"Ardmore",
"Ardsley",
"Bala",
"Berwyn",
"Bethayres",
"Bridesburg",
"Bristol",
"Bryn Mawr",
"Carpenter",
"Chalfont",
"Chelten Avenue",
"Cheltenham",
"Chester TC",
"Chestnut Hill East",
"Chestnut Hill West",
"Churchmans Crossing",
"Claymont",
"Clifton-Aldan",
"Colmar",
"Conshohocken",
"Cornwells Heights",
"Crestmont",
"Croydon",
"Crum Lynne",
"Curtis Park",
"Cynwyd",
"Daylesford",
"Darby",
"Delaware Valley College",
"Devon",
"Downingtown",
"Doylestown",
"East Falls",
"Eastwick Station",
"Eddington",
"Eddystone",
"Elkins Park",
"Elm St",
"Elwyn Station",
"Exton",
"Fern Rock TC",
"Fernwood",
"Folcroft",
"Forest Hills",
"Ft Washington",
"Fortuna",
"Fox Chase",
"Germantown",
"Gladstone",
"Glenolden",
"Glenside",
"Gravers",
"Gwynedd Valley",
"Hatboro",
"Haverford",
"Highland Ave",
"Highland",
"Holmesburg Jct",
"Ivy Ridge",
"Market East",
"Jenkintown-Wyncote",
"Langhorne",
"Lansdale",
"Lansdowne",
"Lawndale",
"Levittown",
"Link Belt",
"Main St",
"Malvern",
"Manayunk",
"Marcus Hook",
"Market East",
"Meadowbrook",
"Media",
"Melrose Park",
"Merion",
"Miquon",
"Morton",
"Moylan-Rose Valley",
"Mt Airy",
"Narberth",
"Neshaminy Falls",
"New Britain",
"Newark",
"Noble",
"Norristown TC",
"North Broad St",
"North Hills",
"North Philadelphia",
"North Wales",
"Norwood",
"Olney",
"Oreland",
"Overbrook",
"Paoli",
"Penllyn",
"Pennbrook",
"Philmont",
"Primos",
"Prospect Park",
"Queen Lane",
"Radnor",
"Ridley Park",
"Rosemont",
"Roslyn",
"Rydal",
"Ryers",
"Secane",
"Sedgwick",
"Sharon Hill",
"Somerton",
"Spring Mill",
"St. Davids",
"St. Martins",
"Stenton",
"Strafford",
"Suburban Station",
"Swarthmore",
"Tacony",
"Temple U",
"Thorndale",
"Torresdale",
"Trenton",
"Trevose",
"Tulpehocken",
"University City",
"Upsal",
"Villanova",
"Wallingford",
"Warminster",
"Washington Lane",
"Wayne Jct",
"Wayne Station",
"West Trenton",
"Whitford",
"Willow Grove",
"Wilmington",
"Wissahickon",
"Wister",
"Woodbourne",
"Wyndmoor",
"Wynnefield Avenue",
"Wynnewood",
"Yardley",
}
// IsValidStation returns whether the station is a valid station.
func IsValidStation(station string) bool {
for _, v := range Stations {
if station == v {
return true
}
}
return false
}