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,194 @@
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
+ </head>
22
+ <body>
23
+ <p id="TemplateHeader" class="TemplateHeader"><img src="logo.jpg" width="80" height="20" alt="octranspo" align="left"/>&nbsp;Stop Passing Times</p>
24
+ <br/>
25
+
26
+
27
+
28
+
29
+
30
+
31
+
32
+
33
+
34
+
35
+
36
+
37
+
38
+ <table id="StopTimesTimesSelectedTable" cellpadding="0" cellspacing="0" border="0">
39
+ <tr>
40
+ <td class="header" valign="top">Date: </td>
41
+ <td class="selected">
42
+
43
+
44
+
45
+ Mon, Mar 23, 2009
46
+
47
+
48
+ </td>
49
+ </tr>
50
+ <tr>
51
+ <td class="header" valign="top">Time: </td><td class="selected">All Day (3am-3am)</td>
52
+ </tr>
53
+ <tr>
54
+ <td class="header" valign="top">Stop: </td><td class="selected">
55
+
56
+ SOMERSET O-W / BRONSON (1987).</td>
57
+ </tr>
58
+ <tr><td colspan="2">&nbsp;</td></tr>
59
+ <tr>
60
+ <td class="header" valign="top" colspan="2">All times</td>
61
+ </tr>
62
+
63
+
64
+ <tr><td colspan="2">&nbsp;</td></tr>
65
+ <tr>
66
+ <td class="header" valign="top">Route: </td><td class="selected">
67
+
68
+ 153 Lebreton
69
+ .</td>
70
+ </tr>
71
+
72
+ <tr>
73
+ <td colspan="2">
74
+ <table id="StopTimesTimesListTable0" cellpadding="0" cellspacing="5" border="1" width="100%">
75
+
76
+
77
+
78
+
79
+ <tr>
80
+
81
+ <td>
82
+
83
+
84
+
85
+ 10:30 AM
86
+
87
+
88
+
89
+ </td>
90
+
91
+
92
+
93
+ <td>
94
+
95
+
96
+
97
+ 11:30 AM
98
+
99
+
100
+
101
+ </td>
102
+
103
+ </tr>
104
+
105
+
106
+
107
+ <tr>
108
+
109
+ <td>
110
+
111
+
112
+
113
+ 12:30 PM
114
+
115
+
116
+
117
+ </td>
118
+
119
+
120
+
121
+ <td>
122
+
123
+
124
+
125
+ 1:30 PM
126
+
127
+
128
+
129
+ </td>
130
+
131
+ </tr>
132
+
133
+
134
+
135
+ <tr>
136
+
137
+ <td>
138
+
139
+
140
+
141
+ 2:30 PM
142
+
143
+
144
+
145
+ </td>
146
+
147
+
148
+
149
+ <td>
150
+
151
+
152
+
153
+ 3:30 PM
154
+
155
+
156
+
157
+ </td>
158
+
159
+ </tr>
160
+
161
+
162
+
163
+
164
+
165
+
166
+ </table>
167
+ </td>
168
+ </tr>
169
+
170
+
171
+ </table>
172
+
173
+ <table id="StopTimesTimesLinksTable" cellpadding="0" cellspacing="0" border="0">
174
+ <tr><td id="StopTimesTimesLinksTDBlank">&nbsp;</td></tr>
175
+
176
+ <tr>
177
+ <td class="link"><a href="post.datestop.stoptimes.oci;jsessionid=BB1896E1D5A2C50D0A09A5D1D14529EB?lang=en&amp;day=20090323&amp;stop=1987&amp;rangeIndex=5">Choose a new route</a></td>
178
+ </tr>
179
+
180
+ <tr>
181
+ <td class="link"><a href="start.stoptimes.oci;jsessionid=BB1896E1D5A2C50D0A09A5D1D14529EB?lang=en">Choose a new stop</a></td>
182
+ </tr>
183
+ </table>
184
+
185
+
186
+
187
+
188
+ <br/>
189
+ <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>
190
+ </body>
191
+ </html>
192
+
193
+
194
+
@@ -0,0 +1,116 @@
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
+ </head>
22
+ <body>
23
+ <p id="TemplateHeader" class="TemplateHeader"><img src="logo.jpg" width="80" height="20" alt="octranspo" align="left"/>&nbsp;Stop Passing Times</p>
24
+ <br/>
25
+
26
+
27
+
28
+
29
+
30
+
31
+
32
+
33
+
34
+
35
+ <table cellpadding="0" cellspacing="0" summary="Warning message"><tr><td>
36
+
37
+
38
+
39
+
40
+ <span class="InfoBeanError"><font color="red"><b>No route selected.</b></font><br/></span>
41
+
42
+
43
+ </td></tr></table>
44
+
45
+
46
+
47
+
48
+
49
+
50
+
51
+ <table id="StopTimesRouteListSelectedTable" cellpadding="0" cellspacing="0" border="0">
52
+ <tr>
53
+ <td class="header" valign="top">Stop:</td><td class="selected">
54
+
55
+ SOMERSET O-W / BRONSON (1987).</td>
56
+ </tr>
57
+ <tr><td colspan="2">&nbsp;</td></tr>
58
+ </table>
59
+ <form action="post.routelist.stoptimes.oci;jsessionid=D2243172066284F5EAAAA25E45E2C95E" method="get">
60
+ <table id="StopTimesRouteListRouteTable" cellpadding="0" cellspacing="0" border="0">
61
+ <tr>
62
+ <td class="question">
63
+
64
+
65
+ Please select up to 5 routes:
66
+ </td>
67
+ </tr>
68
+
69
+ <tr>
70
+ <td class="checkbox" colspan="2">
71
+ <input type="checkbox" name="check0" id="check0"/>
72
+
73
+
74
+ 2 Bayshore
75
+
76
+ </td>
77
+ </tr>
78
+
79
+ <tr>
80
+ <td class="checkbox" colspan="2">
81
+ <input type="checkbox" name="check1" id="check1"/>
82
+
83
+
84
+ 153 Lebreton
85
+
86
+ </td>
87
+ </tr>
88
+
89
+ <tr>
90
+ <td class="button">
91
+ <input name="lang" id="lang" type="hidden" value="en"/>
92
+ <input name="stop" id="stop" type="hidden" value="1987"/>
93
+ <input name="day" id="day" type="hidden" value="20090323"/>
94
+ <input name="rangeIndex" id="rangeIndex" type="hidden" value="5"/>
95
+ <input class="button" name="continue" type="submit" value="Continue"/>
96
+ </td>
97
+ </tr>
98
+ <tr id="StopTimesRouteListRouteTRBlank"><td>&nbsp;</td></tr>
99
+ </table>
100
+ </form>
101
+ <table id="StopTimesRouteListLinksTable" cellpadding="0" cellspacing="0" border="0">
102
+ <tr>
103
+ <td class="link"><a href="start.stoptimes.oci;jsessionid=D2243172066284F5EAAAA25E45E2C95E?lang=en">Choose a new stop</a></td>
104
+ </tr>
105
+ </table>
106
+
107
+
108
+
109
+
110
+ <br/>
111
+ <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>
112
+ </body>
113
+ </html>
114
+
115
+
116
+
@@ -0,0 +1,149 @@
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
+ </head>
22
+ <body>
23
+ <p id="TemplateHeader" class="TemplateHeader"><img src="logo.jpg" width="80" height="20" alt="octranspo" align="left"/>&nbsp;Stop Passing Times</p>
24
+ <br/>
25
+
26
+
27
+
28
+
29
+
30
+
31
+
32
+
33
+
34
+
35
+
36
+
37
+
38
+ <table id="StopTimesTimesSelectedTable" cellpadding="0" cellspacing="0" border="0">
39
+ <tr>
40
+ <td class="header" valign="top">Date: </td>
41
+ <td class="selected">
42
+
43
+
44
+
45
+ Mon, Mar 23, 2009
46
+
47
+
48
+ </td>
49
+ </tr>
50
+ <tr>
51
+ <td class="header" valign="top">Time: </td><td class="selected">All Day (3am-3am)</td>
52
+ </tr>
53
+ <tr>
54
+ <td class="header" valign="top">Stop: </td><td class="selected">
55
+
56
+ TERRY FOX 3C (3058).</td>
57
+ </tr>
58
+ <tr><td colspan="2">&nbsp;</td></tr>
59
+ <tr>
60
+ <td class="header" valign="top" colspan="2">All times</td>
61
+ </tr>
62
+
63
+
64
+ <tr><td colspan="2">&nbsp;</td></tr>
65
+ <tr>
66
+ <td class="header" valign="top">Route: </td><td class="selected">
67
+
68
+ 404 Scotiabank Place Banque Scotia
69
+ .</td>
70
+ </tr>
71
+
72
+ <tr>
73
+ <td colspan="2">
74
+ <table id="StopTimesTimesListTable0" cellpadding="0" cellspacing="5" border="1" width="100%">
75
+
76
+
77
+
78
+
79
+ <tr>
80
+
81
+ <td>
82
+
83
+
84
+
85
+ 6:46 PM
86
+
87
+
88
+
89
+ [D]
90
+
91
+ </td>
92
+
93
+
94
+
95
+ <td>
96
+
97
+
98
+
99
+ 7:31 PM
100
+
101
+
102
+
103
+ [D]
104
+
105
+ </td>
106
+
107
+ </tr>
108
+
109
+
110
+
111
+
112
+
113
+
114
+ </table>
115
+ </td>
116
+ </tr>
117
+
118
+
119
+ <tr>
120
+ <td valign="top" class="notes">[D]</td>
121
+ <td valign="top" class="notes">Destination Scotia Bank Place</td>
122
+ </tr>
123
+
124
+
125
+
126
+ </table>
127
+
128
+ <table id="StopTimesTimesLinksTable" cellpadding="0" cellspacing="0" border="0">
129
+ <tr><td id="StopTimesTimesLinksTDBlank">&nbsp;</td></tr>
130
+
131
+ <tr>
132
+ <td class="link"><a href="post.datestop.stoptimes.oci;jsessionid=ADAA7D5207503031ED9FE64902452F86?lang=en&amp;day=20090323&amp;stop=3058&amp;rangeIndex=5">Choose a new route</a></td>
133
+ </tr>
134
+
135
+ <tr>
136
+ <td class="link"><a href="start.stoptimes.oci;jsessionid=ADAA7D5207503031ED9FE64902452F86?lang=en">Choose a new stop</a></td>
137
+ </tr>
138
+ </table>
139
+
140
+
141
+
142
+
143
+ <br/>
144
+ <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>
145
+ </body>
146
+ </html>
147
+
148
+
149
+