undergrounder 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore ADDED
@@ -0,0 +1,17 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --color
2
+ --format progress
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in undergrounder.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2013 enzo rivello
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,21 @@
1
+ # Undergrounder
2
+
3
+ A little utility to find the shortest path between 2 stations in the London Tube map.
4
+
5
+ ## Installation
6
+
7
+ Open Terminal, position yourself in the root folder and then execute:
8
+
9
+ $ bundle
10
+
11
+
12
+ Then install it with rake:
13
+
14
+ $ rake install
15
+
16
+ ## Usage
17
+
18
+ undergrounder -h -> Display help options
19
+ undergrounder -i -> Start an interactive tube search session.
20
+ undergrounder -s -> Start an internal web server for querying the system
21
+
data/Rakefile ADDED
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
@@ -0,0 +1,34 @@
1
+ Bakerloo:
2
+ - Oxford Circus: Piccadilly Circus
3
+ - Piccadilly Circus: Charing Cross
4
+ - Charing Cross: Embankment
5
+ - Embankment: Waterloo
6
+ Central:
7
+ - Bond Street: Oxford Circus
8
+ - Oxford Circus: Tottenham Court Road
9
+ - Tottenham Court Road: Holborn
10
+ Jubilee:
11
+ - Bond Street: Green Park
12
+ - Green Park: Westminster
13
+ - Westminster: Waterloo
14
+ Northern:
15
+ - Euston: Warren Street
16
+ - Warren Street: Goodge Street
17
+ - Goodge Street: Tottenham Court Road
18
+ - Tottenham Court Road: Leicester Square
19
+ - Leicester Square: Charing Cross
20
+ - Charing Cross: Embankment
21
+ - Embankment: Waterloo
22
+ Piccadilly:
23
+ - King's Cross: Russel Square
24
+ - Russel Square: Holborn
25
+ - Holborn: Covent Garden
26
+ - Covent Garden: Leicester Square
27
+ - Leicester Square: Piccadilly Circus
28
+ - Piccadilly Circus: Green Park
29
+ Victoria:
30
+ - King's Cross: Euston
31
+ - Euston: Warren Street
32
+ - Warren Street: Oxford Circus
33
+ Waterloo & City:
34
+ - Bank: Waterloo
@@ -0,0 +1,435 @@
1
+ Bakerloo:
2
+ - Harrow and Wealdstone: Kenton
3
+ - Kenton: South Kenton
4
+ - South Kenton: North Wembley
5
+ - North Wembley: Wembley Central
6
+ - Wembley Central: Stonebridge Park
7
+ - Stonebridge Park: Harlesden
8
+ - Harlesden: Willesden Junction
9
+ - Willesden Junction: Kensal Green
10
+ - Kensal Green: Queen's Park
11
+ - Queen's Park: Kilburn Park
12
+ - Kilburn Park: Maida Vale
13
+ - Maida Vale: Warwick Avenue
14
+ - Warwick Avenue: Paddington
15
+ - Paddington: Edgware Road
16
+ - Edgware Road: Marylebone
17
+ - Marylebone: Baker Street
18
+ - Baker Street: Regent's Park
19
+ - Regent's Park: Oxford Circus
20
+ - Oxford Circus: Piccadilly Circus
21
+ - Piccadilly Circus: Charing Cross
22
+ - Charing Cross: Embankment
23
+ - Embankment: Waterloo
24
+ - Waterloo: Lambeth North
25
+ - Lambeth North: Elephant and Castle
26
+ Central:
27
+ - Epping: Theydon Bois
28
+ - Theydon Bois: Debden
29
+ - Debden: Loughton
30
+ - Loughton: Buckhurst Hill
31
+ - Buckhurst Hill: Woodford
32
+ - Woodford: Roding Valley
33
+ - Roding Valley: Chigwell
34
+ - Chigwell: Grange Hill
35
+ - Grange Hill: Hainault
36
+ - Hainault: Fairlop
37
+ - Fairlop: Barkingside
38
+ - Barkingside: Newbury Park
39
+ - Newbury Park: Gants Hill
40
+ - Gants Hill: Redbridge
41
+ - Redbridge: Wanstead
42
+ - Wanstead: Leytonstone
43
+ - Woodford: South Woodford
44
+ - South Woodford: Snaresbrook
45
+ - Snaresbrook: Leytonstone
46
+ - Leytonstone: Leyton
47
+ - Leyton: Stratford
48
+ - Stratford: Mile End
49
+ - Mile End: Bethnal Green
50
+ - Bethnal Green: Liverpool Street
51
+ - Liverpool Street: Bank
52
+ - Bank: St. Paul's
53
+ - St. Paul's: Chancery Lane
54
+ - Chancery Lane: Holborn
55
+ - Holborn: Tottenham Court Road
56
+ - Tottenham Court Road: Oxford Circus
57
+ - Oxford Circus: Bond Street
58
+ - Bond Street: Marble Arch
59
+ - Marble Arch: Lancaster Gate
60
+ - Lancaster Gate: Queensway
61
+ - Queensway: Notting Hill Gate
62
+ - Notting Hill Gate: Holland Park
63
+ - Holland Park: Shepherd's Bush
64
+ - Shepherd's Bush: White City
65
+ - White City: East Acton
66
+ - East Acton: North Acton
67
+ - North Acton: West Acton
68
+ - West Acton: Ealing Broadway
69
+ - North Acton: Hanger Lane
70
+ - Hanger Lane: Perivale
71
+ - Perivale: Greenford
72
+ - Greenford: Northolt
73
+ - Northolt: South Ruislip
74
+ - South Ruislip: Ruislip Gardens
75
+ - Ruislip Gardens: West Ruislip
76
+ Circle:
77
+ - Paddington: Bayswater
78
+ - Bayswater: Notting Hill Gate
79
+ - Notting Hill Gate: High Street Kensington
80
+ - High Street Kensington: Gloucester Road
81
+ - Gloucester Road: South Kensington
82
+ - South Kensington: Sloane Square
83
+ - Sloane Square: Victoria
84
+ - Victoria: St. James's Park
85
+ - St. James's Park: Westminster
86
+ - Westminster: Embankment
87
+ - Embankment: Temple
88
+ - Temple: Blackfriars
89
+ - Blackfriars: Mansion House
90
+ - Mansion House: Cannon Street
91
+ - Cannon Street: Monument
92
+ - Monument: Tower Hill
93
+ - Tower Hill: Aldgate
94
+ - Aldgate: Liverpool Street
95
+ - Liverpool Street: Moorgate
96
+ - Moorgate: Barbican
97
+ - Barbican: Farringdon
98
+ - Farringdon: King's Cross St. Pancras
99
+ - King's Cross St. Pancras: Euston Square
100
+ - Euston Square: Great Portland Street
101
+ - Great Portland Street: Baker Street
102
+ - Baker Street: Edgware Road
103
+ - Edgware Road: Paddington
104
+ - Paddington: Royal Oak
105
+ - Royal Oak: Westbourne Park
106
+ - Westbourne Park: Ladbroke Grove
107
+ - Ladbroke Grove: Latimer Road
108
+ - Latimer Road: Wood Lane
109
+ - Wood Lane: Shepherd's Bush Market
110
+ - Shepherd's Bush Market: Goldhawk Road
111
+ - Goldhawk Road: Hammersmith
112
+ District:
113
+ - Edgware Road: Paddington
114
+ - Paddington: Bayswater
115
+ - Bayswater: Notting Hill Gate
116
+ - Notting Hill Gate: High Street Kensington
117
+ - High Street Kensington: Earl's Court
118
+ - Upminster: Upminster Bridge
119
+ - Upminster Bridge: Hornchurch
120
+ - Hornchurch: Elm Park
121
+ - Elm Park: Dagenham East
122
+ - Dagenham East: Dagenham Heathway
123
+ - Dagenham Heathway: Becontree
124
+ - Becontree: Upney
125
+ - Upney: Barking
126
+ - Barking: East Ham
127
+ - East Ham: Upton Park
128
+ - Upton Park: Plaistow
129
+ - Plaistow: West Ham
130
+ - West Ham: Bromley-by-Bow
131
+ - Bromley-by-Bow: Bow Road
132
+ - Bow Road: Mile End
133
+ - Mile End: Stepney Green
134
+ - Stepney Green: Whitechapel
135
+ - Whitechapel: Aldgate East
136
+ - Aldgate East: Tower Hill
137
+ - Tower Hill: Monument
138
+ - Monument: Cannon Street
139
+ - Cannon Street: Mansion House
140
+ - Mansion House: Blackfriars
141
+ - Blackfriars: Temple
142
+ - Temple: Embankment
143
+ - Embankment: Westminster
144
+ - Westminster: St. James's Park
145
+ - St. James's Park: Victoria
146
+ - Victoria: Sloane Square
147
+ - Sloane Square: South Kensington
148
+ - South Kensington: Gloucester Road
149
+ - Gloucester Road: Earl's Court
150
+ - Earl's Court: West Brompton
151
+ - West Brompton: Fulham Broadway
152
+ - Fulham Broadway: Parsons Green
153
+ - Parsons Green: Putney Bridge
154
+ - Putney Bridge: East Putney
155
+ - East Putney: Southfields
156
+ - Southfields: Wimbledon Park
157
+ - Wimbledon Park: Wimbledon
158
+ - Earl's Court: West Kensington
159
+ - West Kensington: Barons Court
160
+ - Barons Court: Hammersmith
161
+ - Hammersmith: Ravenscourt Park
162
+ - Ravenscourt Park: Stamford Brook
163
+ - Stamford Brook: Turnham Green
164
+ - Turnham Green: Gunnersbury
165
+ - Gunnersbury: Kew Gardens
166
+ - Kew Gardens: Richmond
167
+ - Turnham Green: Chiswick Park
168
+ - Chiswick Park: Acton Town
169
+ - Acton Town: Ealing Common
170
+ - Ealing Common: Ealing Broadway
171
+ - Earl's Court: Kensington
172
+ Docklands Light Railway:
173
+ - Bank: Shadwell
174
+ - Tower Gateway: Shadwell
175
+ - Shadwell: Limehouse
176
+ - Limehouse: Westferry
177
+ - Stratford International: Stratford
178
+ - Stratford: Stratford High Street
179
+ - Stratford High Street: Abbey Road
180
+ - Abbey Road: West Ham
181
+ - West Ham: Star Lane
182
+ - Stratford: Pudding Mill Lane
183
+ - Pudding Mill Lane: Bow Church
184
+ - Bow Church: Devons Road
185
+ - Devons Road: Langdon Park
186
+ - Langdon Park: All Saints
187
+ - All Saints: Poplar
188
+ - Westferry: Poplar
189
+ - Poplar: Blackwall
190
+ - Blackwall: East India
191
+ - East India: Canning Town
192
+ - Star Lane: Canning Town
193
+ - Canning Town: Royal Victoria
194
+ - Royal Victoria: Custom House
195
+ - Custom House: Prince Regent
196
+ - Prince Regent: Royal Albert
197
+ - Royal Albert: Beckton Park
198
+ - Beckton Park: Cyprus
199
+ - Cyprus: Gallions Reach
200
+ - Gallions Reach: Beckton
201
+ - Canning Town: West Silvertown
202
+ - West Silvertown: Pontoon Dock
203
+ - Pontoon Dock: London City Airport
204
+ - London City Airport: King George V
205
+ - King George V: Woolwich Arsenal
206
+ - Westferry: West India Quay
207
+ - Poplar: West India Quay
208
+ - West India Quay: Canary Wharf
209
+ - Canary Wharf: Heron Quays
210
+ - Heron Quays: South Quay
211
+ - South Quay: Crossharbour
212
+ - Crossharbour: Mudchute
213
+ - Mudchute: Island Gardens
214
+ - Island Gardens: Cutty Sark
215
+ - Cutty Sark: Greenwich
216
+ - Greenwich: Deptford Bridge
217
+ - Deptford Bridge: Elverson Road
218
+ - Elverson Road: Lewisham
219
+ Hammersmith and City:
220
+ - Barking: East Ham
221
+ - East Ham: Upton Park
222
+ - Upton Park: Plaistow
223
+ - Plaistow: West Ham
224
+ - West Ham: Bromley-by-Bow
225
+ - Bromley-by-Bow: Bow Road
226
+ - Bow Road: Mile End
227
+ - Mile End: Stepney Green
228
+ - Stepney Green: Whitechapel
229
+ - Whitechapel: Aldgate East
230
+ - Aldgate East: Liverpool Street
231
+ - Liverpool Street: Moorgate
232
+ - Moorgate: Barbican
233
+ - Barbican: Farringdon
234
+ - Farringdon: King's Cross St. Pancras
235
+ - King's Cross St. Pancras: Euston Square
236
+ - Euston Square: Great Portland Street
237
+ - Great Portland Street: Baker Street
238
+ - Baker Street: Edgware Road
239
+ - Edgware Road: Paddington
240
+ - Paddington: Royal Oak
241
+ - Royal Oak: Westbourne Park
242
+ - Westbourne Park: Ladbroke Grove
243
+ - Ladbroke Grove: Latimer Road
244
+ - Latimer Road: Wood Lane
245
+ - Wood Lane: Shepherd's Bush Market
246
+ - Shepherd's Bush Market: Goldhawk Road
247
+ - Goldhawk Road: Hammersmith
248
+ Jubilee:
249
+ - Stanmore: Canons Park
250
+ - Canons Park: Queensbury
251
+ - Queensbury: Kingsbury
252
+ - Kingsbury: Wembley Park
253
+ - Wembley Park: Neasden
254
+ - Neasden: Dollis Hill
255
+ - Dollis Hill: Willesden Green
256
+ - Willesden Green: Kilburn
257
+ - Kilburn: West Hampstead
258
+ - West Hampstead: Finchley Road
259
+ - Finchley Road: Swiss Cottage
260
+ - Swiss Cottage: St. John's Wood
261
+ - St. John's Wood: Baker Street
262
+ - Baker Street: Bond Street
263
+ - Bond Street: Green Park
264
+ - Green Park: Westminster
265
+ - Westminster: Waterloo
266
+ - Waterloo: Southwark
267
+ - Southwark: London Bridge
268
+ - London Bridge: Bermondsey
269
+ - Bermondsey: Canada Water
270
+ - Canada Water: Canary Wharf
271
+ - Canary Wharf: North Greenwich
272
+ - North Greenwich: Canning Town
273
+ - Canning Town: West Ham
274
+ - West Ham: Stratford
275
+ Metropolitan:
276
+ - Uxbridge: Hillingdon
277
+ - Hillingdon: Ickenham
278
+ - Ickenham: Ruislip
279
+ - Ruislip: Ruislip Manor
280
+ - Ruislip Manor: Eastcote
281
+ - Eastcote: Rayners Lane
282
+ - Rayners Lane: West Harrow
283
+ - West Harrow: Harrow-on-the-Hill
284
+ - Amersham: Chalfont and Latimer
285
+ - Chesham: Chalfont and Latimer
286
+ - Chalfont and Latimer: Chorleywood
287
+ - Chorleywood: Rickmansworth
288
+ - Watford: Croxley
289
+ - Rickmansworth: Moor Park
290
+ - Croxley: Moor Park
291
+ - Moor Park: Northwood
292
+ - Northwood: Northwood Hills
293
+ - Northwood Hills: Pinner
294
+ - Pinner: North Harrow
295
+ - North Harrow: Harrow-on-the-Hill
296
+ - Moor Park: Harrow-on-the-Hill
297
+ - Harrow-on-the-Hill: Northwick Park
298
+ - Northwick Park: Preston Road
299
+ - Preston Road: Wembley Park
300
+ - Harrow-on-the-Hill: Wembley Park
301
+ - Wembley Park: Finchley Road
302
+ - Harrow-on-the-Hill: Finchley Road
303
+ - Finchley Road: Baker Street
304
+ - Baker Street: Great Portland Street
305
+ - Great Portland Street: Euston Square
306
+ - Euston Square: King's Cross St. Pancras
307
+ - King's Cross St. Pancras: Farringdon
308
+ - Farringdon: Barbican
309
+ - Barbican: Moorgate
310
+ - Moorgate: Liverpool Street
311
+ - Liverpool Street: Aldgate
312
+ Northern:
313
+ - Edgware: Burnt Oak
314
+ - Burnt Oak: Colindale
315
+ - Colindale: Hendon Central
316
+ - Hendon Central: Brent Cross
317
+ - Brent Cross: Golders Green
318
+ - Golders Green: Hampstead
319
+ - Hampstead: Belsize Park
320
+ - Belsize Park: Chalk Farm
321
+ - Chalk Farm: Camden Town
322
+ - Mill Hill East: Finchley Central
323
+ - High Barnet: Totteridge and Whetstone
324
+ - Totteridge and Whetstone: Woodside Park
325
+ - Woodside Park: West Finchley
326
+ - West Finchley: Finchley Central
327
+ - Finchley Central: East Finchley
328
+ - East Finchley: Highgate
329
+ - Highgate: Archway
330
+ - Archway: Tufnell Park
331
+ - Tufnell Park: Kentish Town
332
+ - Kentish Town: Camden Town
333
+ - Camden Town: Mornington Crescent
334
+ - Camden Town: Euston
335
+ - Mornington Crescent: Euston
336
+ - Euston: King's Cross St. Pancras
337
+ - King's Cross St. Pancras: Angel
338
+ - Angel: Old Street
339
+ - Old Street: Moorgate
340
+ - Moorgate: Bank
341
+ - Bank: London Bridge
342
+ - London Bridge: Borough
343
+ - Borough: Elephant and Castle
344
+ - Elephant and Castle: Kennington
345
+ - Euston: Warren Street
346
+ - Warren Street: Goodge Street
347
+ - Goodge Street: Tottenham Court Road
348
+ - Tottenham Court Road: Leicester Square
349
+ - Leicester Square: Charing Cross
350
+ - Charing Cross: Embankment
351
+ - Embankment: Waterloo
352
+ - Waterloo: Kennington
353
+ - Kennington: Oval
354
+ - Oval: Stockwell
355
+ - Stockwell: Clapham North
356
+ - Clapham North: Clapham Common
357
+ - Clapham Common: Clapham South
358
+ - Clapham South: Balham
359
+ - Balham: Tooting Bec
360
+ - Tooting Bec: Tooting Broadway
361
+ - Tooting Broadway: Colliers Wood
362
+ - Colliers Wood: South Wimbledon
363
+ - South Wimbledon: Morden
364
+ Piccadilly:
365
+ - Cockfosters: Oakwood
366
+ - Oakwood: Southgate
367
+ - Southgate: Arnos Grove
368
+ - Arnos Grove: Bounds Green
369
+ - Bounds Green: Wood Green
370
+ - Wood Green: Turnpike Lane
371
+ - Turnpike Lane: Manor House
372
+ - Manor House: Finsbury Park
373
+ - Finsbury Park: Arsenal
374
+ - Arsenal: Holloway Road
375
+ - Holloway Road: Caledonian Road
376
+ - Caledonian Road: King's Cross St. Pancras
377
+ - King's Cross St. Pancras: Russell Square
378
+ - Russell Square: Holborn
379
+ - Holborn: Covent Garden
380
+ - Covent Garden: Leicester Square
381
+ - Leicester Square: Piccadilly Circus
382
+ - Piccadilly Circus: Green Park
383
+ - Green Park: Hyde Park Corner
384
+ - Hyde Park Corner: Knightsbridge
385
+ - Knightsbridge: South Kensington
386
+ - South Kensington: Gloucester Road
387
+ - Gloucester Road: Earl's Court
388
+ - Earl's Court: Barons Court
389
+ - Barons Court: Hammersmith
390
+ - Hammersmith: Turnham Green
391
+ - Turnham Green: Acton Town
392
+ - Acton Town: South Ealing
393
+ - South Ealing: Northfields
394
+ - Northfields: Boston Manor
395
+ - Boston Manor: Osterley
396
+ - Osterley: Hounslow East
397
+ - Hounslow East: Hounslow Central
398
+ - Hounslow Central: Hounslow West
399
+ - Hounslow West: Hatton Cross
400
+ - Hatton Cross: Heathrow Terminal 4
401
+ - Hatton Cross: Heathrow Terminals 1, 2, 3
402
+ - Heathrow Terminal 4: Heathrow Terminals 1, 2, 3
403
+ - Heathrow Terminals 1, 2, 3: Heathrow Terminal 5
404
+ - Acton Town: Ealing Common
405
+ - Ealing Common: North Ealing
406
+ - North Ealing: Park Royal
407
+ - Park Royal: Alperton
408
+ - Alperton: Sudbury Town
409
+ - Sudbury Town: Sudbury Hill
410
+ - Sudbury Hill: South Harrow
411
+ - South Harrow: Rayners Lane
412
+ - Rayners Lane: Eastcote
413
+ - Eastcote: Ruislip Manor
414
+ - Ruislip Manor: Ruislip
415
+ - Ruislip: Ickenham
416
+ - Ickenham: Hillingdon
417
+ - Hillingdon: Uxbridge
418
+ Victoria:
419
+ - Walthamstow Central: Blackhorse Road
420
+ - Blackhorse Road: Tottenham Hale
421
+ - Tottenham Hale: Seven Sisters
422
+ - Seven Sisters: Finsbury Park
423
+ - Finsbury Park: Highbury and Islington
424
+ - Highbury and Islington: King's Cross St. Pancras
425
+ - King's Cross St. Pancras: Euston
426
+ - Euston: Warren Street
427
+ - Warren Street: Oxford Circus
428
+ - Oxford Circus: Green Park
429
+ - Green Park: Victoria
430
+ - Victoria: Pimlico
431
+ - Pimlico: Vauxhall
432
+ - Vauxhall: Stockwell
433
+ - Stockwell: Brixton
434
+ Waterloo and City:
435
+ - Bank: Waterloo