octranspo 0.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (73) hide show
  1. data/.gitignore +3 -0
  2. data/Gemfile +2 -0
  3. data/Gemfile.lock +26 -0
  4. data/Rakefile +8 -0
  5. data/lib/octranspo.rb +20 -0
  6. data/lib/octranspo/headsign.rb +2539 -0
  7. data/lib/octranspo/headsigns.yml +40565 -0
  8. data/lib/octranspo/landmarks.rb +37 -0
  9. data/lib/octranspo/lingo.rb +125 -0
  10. data/lib/octranspo/lingo/headsign_messages.yml +104 -0
  11. data/lib/octranspo/lingo/headsign_signatures.yml +3 -0
  12. data/lib/octranspo/lingo/landmarks.yml +205 -0
  13. data/lib/octranspo/lingo/roadways.yml +1957 -0
  14. data/lib/octranspo/mobile_resource_methods.rb +98 -0
  15. data/lib/octranspo/mobile_route_data.rb +85 -0
  16. data/lib/octranspo/mobile_route_schedule.rb +118 -0
  17. data/lib/octranspo/mobile_stop_schedule.rb +137 -0
  18. data/lib/octranspo/remote_resource_methods.rb +89 -0
  19. data/lib/octranspo/route.rb +31 -0
  20. data/lib/octranspo/routes.yml +507 -0
  21. data/lib/octranspo/service_date.rb +17 -0
  22. data/lib/octranspo/stations.yml +77 -0
  23. data/lib/octranspo/stop.rb +69 -0
  24. data/lib/octranspo/stop_resource.rb +46 -0
  25. data/lib/octranspo/stops.yml +30696 -0
  26. data/lib/octranspo/version.rb +3 -0
  27. data/octranspo.gemspec +22 -0
  28. data/test/fixtures/mobile_route_data/20090323/route_123_index_0.html +457 -0
  29. data/test/fixtures/mobile_route_data/20090323/route_123_index_1.html +99 -0
  30. data/test/fixtures/mobile_route_data/20090323/route_1_index_0.html +700 -0
  31. data/test/fixtures/mobile_route_data/20090323/route_1_index_1.html +691 -0
  32. data/test/fixtures/mobile_route_data/20090323/route_2_index_0.html +682 -0
  33. data/test/fixtures/mobile_route_data/20090323/route_2_index_1.html +646 -0
  34. data/test/fixtures/mobile_route_data/20100323/route_123_index_0.html +469 -0
  35. data/test/fixtures/mobile_route_data/20100323/route_123_index_1.html +105 -0
  36. data/test/fixtures/mobile_route_data/20100323/route_1_index_0.html +703 -0
  37. data/test/fixtures/mobile_route_data/20100323/route_1_index_1.html +694 -0
  38. data/test/fixtures/mobile_route_data/20100323/route_2_index_0.html +685 -0
  39. data/test/fixtures/mobile_route_data/20100323/route_2_index_1.html +649 -0
  40. data/test/fixtures/mobile_route_data/20100323/route_3_index_0.html +649 -0
  41. data/test/fixtures/mobile_route_data/20100323/route_3_index_1.html +721 -0
  42. data/test/fixtures/mobile_route_schedule/20090323/route_18_direction_2_location_25.html +1038 -0
  43. data/test/fixtures/mobile_route_schedule/20090323/route_1_direction_1_location_0.html +1127 -0
  44. data/test/fixtures/mobile_route_schedule/20090323/route_2_direction_2_location_11.html +1430 -0
  45. data/test/fixtures/mobile_route_schedule/20090323/route_2_direction__location_11.html +104 -0
  46. data/test/fixtures/mobile_route_schedule/20100323/route_1_direction_1_location_0.html +1180 -0
  47. data/test/fixtures/mobile_route_schedule/20100323/route_2_direction_2_location_11.html +1554 -0
  48. data/test/fixtures/mobile_route_schedule/20100323/route_3_direction_1_location_0.html +1082 -0
  49. data/test/fixtures/mobile_route_schedule/20100323/route_3_direction_1_location_1.html +1082 -0
  50. data/test/fixtures/mobile_stop_schedule/20090323/location_1987.yml +198 -0
  51. data/test/fixtures/mobile_stop_schedule/20090323/location_1987_route_index_0.html +1283 -0
  52. data/test/fixtures/mobile_stop_schedule/20090323/location_1987_route_index_1.html +194 -0
  53. data/test/fixtures/mobile_stop_schedule/20090323/location_1987_route_index_2.html +116 -0
  54. data/test/fixtures/mobile_stop_schedule/20090323/location_3058_route_index_12.html +149 -0
  55. data/test/fixtures/mobile_stop_schedule/20090323/location_8789_route_index_0.html +1002 -0
  56. data/test/fixtures/mobile_stop_schedule/20100323/location_1987.yml +209 -0
  57. data/test/fixtures/mobile_stop_schedule/20100323/location_1987_route_index_0.html +1393 -0
  58. data/test/fixtures/mobile_stop_schedule/20100323/location_1987_route_index_1.html +206 -0
  59. data/test/fixtures/mobile_stop_schedule/20100323/location_1987_route_index_2.html +123 -0
  60. data/test/fixtures/mobile_stop_schedule/20100323/location_3058_route_index_12.html +278 -0
  61. data/test/fixtures/mobile_stop_schedule/20100323/location_7558_route_index_0.html +979 -0
  62. data/test/fixtures/mobile_stop_schedule/20100323/location_8789_route_index_0.html +1059 -0
  63. data/test/fixtures/stop_resource/1987.html +126 -0
  64. data/test/test_helper.rb +15 -0
  65. data/test/unit/headsign_test.rb +34 -0
  66. data/test/unit/lingo_test.rb +139 -0
  67. data/test/unit/mobile_resource_methods_test.rb +25 -0
  68. data/test/unit/mobile_route_data_test.rb +124 -0
  69. data/test/unit/mobile_route_schedule_test.rb +210 -0
  70. data/test/unit/mobile_stop_schedule_test.rb +153 -0
  71. data/test/unit/service_date_test.rb +27 -0
  72. data/test/unit/stop_resource_test.rb +26 -0
  73. metadata +251 -0
@@ -0,0 +1,206 @@
1
+
2
+
3
+
4
+
5
+
6
+
7
+
8
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/2002/REC-xhtml1-20020801/DTD/xhtml1-transitional.dtd">
9
+ <html>
10
+ <head>
11
+ <title>OCTranspo Stop Times</title>
12
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
13
+ <meta http-equiv="Content-Language" content="en-us"/>
14
+ <link rel="stylesheet" type="text/css" href="mobileweb.css"/>
15
+
16
+
17
+
18
+
19
+
20
+
21
+
22
+
23
+
24
+
25
+
26
+
27
+ </head>
28
+ <body>
29
+ <p id="TemplateHeader" class="TemplateHeader"><img src="logo.jpg" width="80" height="20" alt="octranspo" align="left"/>&nbsp;Stop Passing Times</p>
30
+ <br/>
31
+
32
+
33
+
34
+
35
+
36
+
37
+
38
+
39
+
40
+
41
+
42
+
43
+
44
+ <table id="StopTimesTimesSelectedTable" cellpadding="0" cellspacing="0" border="0">
45
+ <tr>
46
+ <td class="header" valign="top">Date: </td>
47
+ <td class="selected">
48
+
49
+
50
+
51
+ Tue, Mar 23, 2010
52
+
53
+
54
+ </td>
55
+ </tr>
56
+ <tr>
57
+ <td class="header" valign="top">Time: </td><td class="selected">All Day (3am-3am)</td>
58
+ </tr>
59
+ <tr>
60
+ <td class="header" valign="top">Stop: </td><td class="selected">
61
+
62
+ SOMERSET O-W / BRONSON (1987).</td>
63
+ </tr>
64
+ <tr><td colspan="2">&nbsp;</td></tr>
65
+ <tr>
66
+ <td class="header" valign="top" colspan="2">All times</td>
67
+ </tr>
68
+
69
+
70
+ <tr><td colspan="2">&nbsp;</td></tr>
71
+ <tr>
72
+ <td class="header" valign="top">Route: </td><td class="selected">
73
+
74
+ 153 Lebreton
75
+ .</td>
76
+ </tr>
77
+
78
+ <tr>
79
+ <td colspan="2">
80
+ <table id="StopTimesTimesListTable0" cellpadding="0" cellspacing="5" border="1" width="100%">
81
+
82
+
83
+
84
+
85
+ <tr>
86
+
87
+ <td>
88
+
89
+
90
+
91
+ 10:35 AM
92
+
93
+
94
+
95
+
96
+ </td>
97
+
98
+
99
+
100
+ <td>
101
+
102
+
103
+
104
+ 11:35 AM
105
+
106
+
107
+
108
+
109
+ </td>
110
+
111
+ </tr>
112
+
113
+
114
+
115
+ <tr>
116
+
117
+ <td>
118
+
119
+
120
+
121
+ 12:35 PM
122
+
123
+
124
+
125
+
126
+ </td>
127
+
128
+
129
+
130
+ <td>
131
+
132
+
133
+
134
+ 1:35 PM
135
+
136
+
137
+
138
+
139
+ </td>
140
+
141
+ </tr>
142
+
143
+
144
+
145
+ <tr>
146
+
147
+ <td>
148
+
149
+
150
+
151
+ 2:35 PM
152
+
153
+
154
+
155
+
156
+ </td>
157
+
158
+
159
+
160
+ <td>
161
+
162
+
163
+
164
+ 3:37 PM
165
+
166
+
167
+
168
+
169
+ </td>
170
+
171
+ </tr>
172
+
173
+
174
+
175
+
176
+
177
+
178
+ </table>
179
+ </td>
180
+ </tr>
181
+
182
+
183
+ </table>
184
+
185
+ <table id="StopTimesTimesLinksTable" cellpadding="0" cellspacing="0" border="0">
186
+ <tr><td id="StopTimesTimesLinksTDBlank">&nbsp;</td></tr>
187
+
188
+ <tr>
189
+ <td class="link"><a href="post.datestop.stoptimes.oci;jsessionid=6947AE1B598FC4AF67C0CCBB9911304C?lang=en&amp;day=20100323&amp;stop=1987&amp;rangeIndex=5&amp;accessible=false">Choose a new route</a></td>
190
+ </tr>
191
+
192
+ <tr>
193
+ <td class="link"><a href="start.stoptimes.oci;jsessionid=6947AE1B598FC4AF67C0CCBB9911304C?lang=en">Choose a new stop</a></td>
194
+ </tr>
195
+ </table>
196
+
197
+
198
+
199
+
200
+ <br/>
201
+ <p id="TemplateFooter" class="TemplateFooter"><a href="startFR.stoptimes.oci">Fran�ais</a> | <a href="startEN.schedules.oci">Route Schedules</a> | <a href="startEN.tripplan.oci">Travel Planner</a></p>
202
+ </body>
203
+ </html>
204
+
205
+
206
+
@@ -0,0 +1,123 @@
1
+
2
+
3
+
4
+
5
+
6
+
7
+
8
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/2002/REC-xhtml1-20020801/DTD/xhtml1-transitional.dtd">
9
+ <html>
10
+ <head>
11
+ <title>OCTranspo Stop Times</title>
12
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
13
+ <meta http-equiv="Content-Language" content="en-us"/>
14
+ <link rel="stylesheet" type="text/css" href="mobileweb.css"/>
15
+
16
+
17
+
18
+
19
+
20
+
21
+
22
+
23
+
24
+
25
+
26
+
27
+ </head>
28
+ <body>
29
+ <p id="TemplateHeader" class="TemplateHeader"><img src="logo.jpg" width="80" height="20" alt="octranspo" align="left"/>&nbsp;Stop Passing Times</p>
30
+ <br/>
31
+
32
+
33
+
34
+
35
+
36
+
37
+
38
+
39
+
40
+
41
+ <table cellpadding="0" cellspacing="0" summary="Warning message"><tr><td>
42
+
43
+
44
+
45
+
46
+ <span class="InfoBeanError"><font color="red"><b>No route selected.</b></font><br/></span>
47
+
48
+
49
+ </td></tr></table>
50
+
51
+
52
+
53
+
54
+
55
+
56
+
57
+ <table id="StopTimesRouteListSelectedTable" cellpadding="0" cellspacing="0" border="0">
58
+ <tr>
59
+ <td class="header" valign="top">Stop:</td><td class="selected">
60
+
61
+ SOMERSET O-W / BRONSON (1987).</td>
62
+ </tr>
63
+ <tr><td colspan="2">&nbsp;</td></tr>
64
+ </table>
65
+ <form action="post.routelist.stoptimes.oci;jsessionid=91C3AFAA9F656DCD0BA2A79DDC638DB9" method="get">
66
+ <table id="StopTimesRouteListRouteTable" cellpadding="0" cellspacing="0" border="0">
67
+ <tr>
68
+ <td class="question">
69
+
70
+
71
+ Please select up to 5 routes:
72
+ </td>
73
+ </tr>
74
+
75
+ <tr>
76
+ <td class="checkbox" colspan="2">
77
+ <input type="checkbox" name="check0" id="check0"/>
78
+
79
+
80
+ 2 Bayshore
81
+
82
+ </td>
83
+ </tr>
84
+
85
+ <tr>
86
+ <td class="checkbox" colspan="2">
87
+ <input type="checkbox" name="check1" id="check1"/>
88
+
89
+
90
+ 153 Lebreton
91
+
92
+ </td>
93
+ </tr>
94
+
95
+ <tr>
96
+ <td class="button">
97
+ <input name="lang" id="lang" type="hidden" value="en"/>
98
+ <input name="stop" id="stop" type="hidden" value="1987"/>
99
+ <input name="day" id="day" type="hidden" value="20100323"/>
100
+ <input name="rangeIndex" id="rangeIndex" type="hidden" value="5"/>
101
+ <input name="accessible" id="accessible" type="hidden" value="false"/>
102
+ <input class="button" name="continue" type="submit" value="Continue"/>
103
+ </td>
104
+ </tr>
105
+ <tr id="StopTimesRouteListRouteTRBlank"><td>&nbsp;</td></tr>
106
+ </table>
107
+ </form>
108
+ <table id="StopTimesRouteListLinksTable" cellpadding="0" cellspacing="0" border="0">
109
+ <tr>
110
+ <td class="link"><a href="start.stoptimes.oci;jsessionid=91C3AFAA9F656DCD0BA2A79DDC638DB9?lang=en">Choose a new stop</a></td>
111
+ </tr>
112
+ </table>
113
+
114
+
115
+
116
+
117
+ <br/>
118
+ <p id="TemplateFooter" class="TemplateFooter"><a href="startFR.stoptimes.oci">Fran�ais</a> | <a href="startEN.schedules.oci">Route Schedules</a> | <a href="startEN.tripplan.oci">Travel Planner</a></p>
119
+ </body>
120
+ </html>
121
+
122
+
123
+
@@ -0,0 +1,278 @@
1
+
2
+
3
+
4
+
5
+
6
+
7
+
8
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/2002/REC-xhtml1-20020801/DTD/xhtml1-transitional.dtd">
9
+ <html>
10
+ <head>
11
+ <title>OCTranspo Stop Times</title>
12
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
13
+ <meta http-equiv="Content-Language" content="en-us"/>
14
+ <link rel="stylesheet" type="text/css" href="mobileweb.css"/>
15
+
16
+
17
+
18
+
19
+
20
+
21
+
22
+
23
+
24
+
25
+
26
+
27
+ </head>
28
+ <body>
29
+ <p id="TemplateHeader" class="TemplateHeader"><img src="logo.jpg" width="80" height="20" alt="octranspo" align="left"/>&nbsp;Stop Passing Times</p>
30
+ <br/>
31
+
32
+
33
+
34
+
35
+
36
+
37
+
38
+
39
+
40
+
41
+
42
+
43
+
44
+ <table id="StopTimesTimesSelectedTable" cellpadding="0" cellspacing="0" border="0">
45
+ <tr>
46
+ <td class="header" valign="top">Date: </td>
47
+ <td class="selected">
48
+
49
+
50
+
51
+ Tue, Mar 23, 2010
52
+
53
+
54
+ </td>
55
+ </tr>
56
+ <tr>
57
+ <td class="header" valign="top">Time: </td><td class="selected">All Day (3am-3am)</td>
58
+ </tr>
59
+ <tr>
60
+ <td class="header" valign="top">Stop: </td><td class="selected">
61
+
62
+ TERRY FOX 3C (3058).</td>
63
+ </tr>
64
+ <tr><td colspan="2">&nbsp;</td></tr>
65
+ <tr>
66
+ <td class="header" valign="top" colspan="2">All times</td>
67
+ </tr>
68
+
69
+
70
+ <tr><td colspan="2">&nbsp;</td></tr>
71
+ <tr>
72
+ <td class="header" valign="top">Route: </td><td class="selected">
73
+
74
+ 404 Scotiabank Place Banque Scotia
75
+ .</td>
76
+ </tr>
77
+
78
+ <tr>
79
+ <td colspan="2">
80
+ <table id="StopTimesTimesListTable0" cellpadding="0" cellspacing="5" border="1" width="100%">
81
+
82
+
83
+
84
+
85
+ <tr>
86
+
87
+ <td>
88
+
89
+
90
+
91
+ 4:46 PM
92
+
93
+
94
+
95
+ [D]
96
+
97
+
98
+ </td>
99
+
100
+
101
+
102
+ <td>
103
+
104
+
105
+
106
+ 5:16 PM
107
+
108
+
109
+
110
+ [D]
111
+
112
+
113
+ </td>
114
+
115
+ </tr>
116
+
117
+
118
+
119
+ <tr>
120
+
121
+ <td>
122
+
123
+
124
+
125
+ 5:46 PM
126
+
127
+
128
+
129
+ [D]
130
+
131
+
132
+ </td>
133
+
134
+
135
+
136
+ <td>
137
+
138
+
139
+
140
+ 6:17 PM
141
+
142
+
143
+
144
+ [D]
145
+
146
+
147
+ </td>
148
+
149
+ </tr>
150
+
151
+
152
+
153
+ <tr>
154
+
155
+ <td>
156
+
157
+
158
+
159
+ 6:26 PM
160
+
161
+
162
+
163
+ [D]
164
+
165
+
166
+ </td>
167
+
168
+
169
+
170
+ <td>
171
+
172
+
173
+
174
+ 6:42 PM
175
+
176
+
177
+
178
+ [D]
179
+
180
+
181
+ </td>
182
+
183
+ </tr>
184
+
185
+
186
+
187
+ <tr>
188
+
189
+ <td>
190
+
191
+
192
+
193
+ 6:46 PM
194
+
195
+
196
+
197
+ [D]
198
+
199
+
200
+ </td>
201
+
202
+
203
+
204
+ <td>
205
+
206
+
207
+
208
+ 7:01 PM
209
+
210
+
211
+
212
+ [D]
213
+
214
+
215
+ </td>
216
+
217
+ </tr>
218
+
219
+
220
+
221
+ <tr>
222
+
223
+ <td>
224
+
225
+
226
+
227
+ 7:02 PM
228
+
229
+
230
+
231
+ [D]
232
+
233
+
234
+ </td>
235
+
236
+
237
+
238
+ </tr>
239
+
240
+
241
+
242
+
243
+ </table>
244
+ </td>
245
+ </tr>
246
+
247
+
248
+ <tr>
249
+ <td valign="top" class="notes">[D]</td>
250
+ <td valign="top" class="notes">Destination Scotia Bank Place</td>
251
+ </tr>
252
+
253
+
254
+
255
+ </table>
256
+
257
+ <table id="StopTimesTimesLinksTable" cellpadding="0" cellspacing="0" border="0">
258
+ <tr><td id="StopTimesTimesLinksTDBlank">&nbsp;</td></tr>
259
+
260
+ <tr>
261
+ <td class="link"><a href="post.datestop.stoptimes.oci;jsessionid=43CCFC49B2296EDAD0BC4ABFBA88EA30?lang=en&amp;day=20100323&amp;stop=3058&amp;rangeIndex=5&amp;accessible=false">Choose a new route</a></td>
262
+ </tr>
263
+
264
+ <tr>
265
+ <td class="link"><a href="start.stoptimes.oci;jsessionid=43CCFC49B2296EDAD0BC4ABFBA88EA30?lang=en">Choose a new stop</a></td>
266
+ </tr>
267
+ </table>
268
+
269
+
270
+
271
+
272
+ <br/>
273
+ <p id="TemplateFooter" class="TemplateFooter"><a href="startFR.stoptimes.oci">Fran�ais</a> | <a href="startEN.schedules.oci">Route Schedules</a> | <a href="startEN.tripplan.oci">Travel Planner</a></p>
274
+ </body>
275
+ </html>
276
+
277
+
278
+