journey_planner 0.0.8 → 0.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +52 -0
- data/lib/journey.rb +10 -0
- data/lib/journey_planner/version.rb +1 -1
- data/lib/results.rb +13 -2
- data/lib/{rubify_keys.rb → rubyify_keys.rb} +1 -1
- data/spec/fixtures/tfl_jp_casettes/disambiguation.yml +77 -0
- data/spec/fixtures/tfl_jp_casettes/disruptions.yml +574 -0
- data/spec/journey_spec.rb +17 -0
- data/spec/results_spec.rb +9 -0
- metadata +6 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 55eeb89120a76305a5bf2debc0dafd2d83809c7a
|
4
|
+
data.tar.gz: 167d4fd324aca2c5c4f26b5935b0a22d12aa55be
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1ee3cf7d0e2ffd34fc2bce68f82b6e344aa6ffd91c84ded5eff264e9d1151a848a0c25f7357d474bca755b731b93a11f1c90c16264545c30093d7880fff94feb
|
7
|
+
data.tar.gz: 1d80b52f917b60531638db526488181218bc63ef833bd8b39c1beb94488aac4c7d72b7c07978ea67c3174a13548357fdc484d3b22941510c64e64e61667099cd
|
data/README.md
CHANGED
@@ -36,6 +36,8 @@ journeys = client.get_journeys from: "old street underground station", to: "oxfo
|
|
36
36
|
|
37
37
|
### Methods you can play with:
|
38
38
|
|
39
|
+
####Journey Instructions
|
40
|
+
|
39
41
|
The `instructions` method returns a hash of instructions, with the keys as departure and arrival times, and the values as arrays of verbal instructions.
|
40
42
|
|
41
43
|
```ruby
|
@@ -44,6 +46,25 @@ journeys.first.instructions
|
|
44
46
|
# "Sep 5 2014 16:32 - Sep 5 2014 16:35"=>["Victoria line to Oxford Circus / Victoria line towards Brixton"]}
|
45
47
|
```
|
46
48
|
|
49
|
+
####Disruptions
|
50
|
+
|
51
|
+
The `find_disruptions` method returns an array of potential disruptions to a particular journey.
|
52
|
+
|
53
|
+
```ruby
|
54
|
+
journeys = client.get_journeys from: "fulham broadway underground station", to: 'edgware road underground station circle line'
|
55
|
+
journey = journeys.first
|
56
|
+
journeys.first.find_disruptions
|
57
|
+
#=> ["DISTRICT LINE TO KENSINGTON (OLYMPIA): The all day District Line service to Kensington (Olympia) has been withdrawn on Monday to Friday except for a very limited number of early morning and evening trains and during some events. Journey Planner will show when this service is operating.", "District Line: Minor delays between Edgware Road and Wimbledon only, due to an earlier signal failure at East Putney. GOOD SERVICE on the rest of the line.", "FULHAM BROADWAY, WIMBLEDON, SOUTHFIELDS, EARLS COURT AND WESTMINSTER STATIONS: A ramp is provided at these stations providing step-free access onto District line trains (as well as Circle line trains at Westminster). Please ask staff in the ticket hall for assistance."]
|
58
|
+
```
|
59
|
+
|
60
|
+
This method also comes with the filter options, `filter: :realtime`, `filter: information`. The former represents live updates regarding delays and closures, where the latter provides more general information.
|
61
|
+
|
62
|
+
```ruby
|
63
|
+
journey.find_disruptions filter: :realtime
|
64
|
+
#=> ["District Line: Minor delays between Edgware Road and Wimbledon only, due to an earlier signal failure at East Putney. GOOD SERVICE on the rest of the line."]
|
65
|
+
```
|
66
|
+
|
67
|
+
|
47
68
|
### Integrating with Google Maps
|
48
69
|
|
49
70
|
Setting up a simple Sinatra app:
|
@@ -150,6 +171,37 @@ apply_html_markup: #=> Flag to determine whether certain text (e.g. walking inst
|
|
150
171
|
|
151
172
|
```
|
152
173
|
|
174
|
+
#### Disambiguation
|
175
|
+
|
176
|
+
When entering to- and from- locations, specificity is the best option. For instance, searching for "Fulham Broadway Underground Station" or "Feltham Rail Station" will work, whereas "Fulham Broadway", "Feltham", "Fulham Broadway Station" or "Feltham Station" will not. However, TFL does provide some disambiguation options in their API for less obvious entries, which the gem prints to the console when an ambiguous search has been entered.
|
177
|
+
|
178
|
+
```ruby
|
179
|
+
client.get_journeys from: "fulham broadway underground station", to: "edgware road underground station"
|
180
|
+
|
181
|
+
#=> Did you mean?
|
182
|
+
#=> Edgware Road, Edgware Road (Circle Line) Underground Station
|
183
|
+
#=> false
|
184
|
+
```
|
185
|
+
|
186
|
+
##Objectives
|
187
|
+
|
188
|
+
* To learn about how to create a gem
|
189
|
+
* To learn about making HTTP requests with HTTParty
|
190
|
+
* To learn how to stub HTTP requests in your test suite with VCR and WebMock
|
191
|
+
* To explore the TFL Journey Planner API
|
192
|
+
|
193
|
+
|
194
|
+
##Technologies
|
195
|
+
|
196
|
+
* Ruby
|
197
|
+
* RSpec
|
198
|
+
* VCR
|
199
|
+
* WebMock
|
200
|
+
* HTTParty
|
201
|
+
* Recursive OpenStruct
|
202
|
+
* TFL API
|
203
|
+
|
204
|
+
|
153
205
|
## Contributing
|
154
206
|
|
155
207
|
1. Fork it ( https://github.com/[my-github-username]/journey_planner_gem/fork )
|
data/lib/journey.rb
CHANGED
@@ -27,6 +27,16 @@ module TFLJourneyPlanner
|
|
27
27
|
return array
|
28
28
|
end
|
29
29
|
|
30
|
+
def find_disruptions(options = {filter: :all})
|
31
|
+
array = []
|
32
|
+
legs.each do |leg|
|
33
|
+
leg.disruptions.each do |disruption|
|
34
|
+
array << disruption.description if (options[:filter] == :all || disruption.category.downcase == options[:filter].to_s.downcase )
|
35
|
+
end
|
36
|
+
end
|
37
|
+
return array
|
38
|
+
end
|
39
|
+
|
30
40
|
end
|
31
41
|
|
32
42
|
end
|
data/lib/results.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
require_relative '
|
1
|
+
require_relative 'rubyify_keys'
|
2
2
|
|
3
3
|
module TFLJourneyPlanner
|
4
4
|
|
@@ -50,7 +50,18 @@ module TFLJourneyPlanner
|
|
50
50
|
alternativeCycle: alternative_cycle,
|
51
51
|
alternativeWalking: alternative_walking,
|
52
52
|
applyHtmlMarkup: apply_html_markup}).rubyify_keys!
|
53
|
-
|
53
|
+
|
54
|
+
results["$type"].include?("DisambiguationResult") ? (disambiguate results) : (process_journeys_from results)
|
55
|
+
end
|
56
|
+
|
57
|
+
def disambiguate results
|
58
|
+
options = []
|
59
|
+
find_common_names = lambda { |option| options << option["place"]["common_name"] }
|
60
|
+
results["to_location_disambiguation"]["disambiguation_options"].each(&find_common_names) if results["to_location_disambiguation"]["disambiguation_options"]
|
61
|
+
results["from_location_disambiguation"]["disambiguation_options"].each(&find_common_names) if results["from_location_disambiguation"]["disambiguation_options"]
|
62
|
+
puts "Did you mean?\n\n"
|
63
|
+
options.each {|o| puts o + "\n"}
|
64
|
+
false
|
54
65
|
end
|
55
66
|
|
56
67
|
def process_journeys_from results
|
@@ -0,0 +1,77 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://api.tfl.gov.uk/Journey/JourneyResults/%7Bfrom%7D/to/%7Bto%7D/via/%7Bvia%7D?adjustment=&alternativeCycle=false&alternativeWalking=true&app_id=a09e631e&app_key=c381b49216f90558cf148c53cd5205b8&applyHtmlMarkup=false&cyclePreference=&from=fulham%2Bbroadway%2Bunderground%2Bstation&fromName=&journeyPreference=&maxTransferMinutes=&maxWalkingMinutes=&mode=&nationalSearch=false&timeIs=Departing&to=edgware%2Broad%2Bunderground%2Bstation&toName=&via=&viaName=
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers: {}
|
10
|
+
response:
|
11
|
+
status:
|
12
|
+
code: 200
|
13
|
+
message: OK
|
14
|
+
headers:
|
15
|
+
Cache-Control:
|
16
|
+
- s-maxage=86400
|
17
|
+
Content-Type:
|
18
|
+
- application/json; charset=utf-8
|
19
|
+
Vary:
|
20
|
+
- Accept-Encoding
|
21
|
+
Server:
|
22
|
+
- Microsoft-IIS/8.0
|
23
|
+
Api-Entity-Payload:
|
24
|
+
- itineraryresult, disambiguationresult, mode, stoppoint, place, disruption,
|
25
|
+
plannedworks, line, linestatus
|
26
|
+
X-Aspnet-Version:
|
27
|
+
- 4.0.30319
|
28
|
+
Access-Control-Allow-Headers:
|
29
|
+
- Content-Type
|
30
|
+
Access-Control-Allow-Methods:
|
31
|
+
- GET,POST,PUT,DELETE,OPTIONS
|
32
|
+
X-Ttl-Rule:
|
33
|
+
- '0'
|
34
|
+
X-Cacheable:
|
35
|
+
- Yes. Cacheable
|
36
|
+
X-Ttl:
|
37
|
+
- '86400.000'
|
38
|
+
X-Backend:
|
39
|
+
- api
|
40
|
+
X-Varnish:
|
41
|
+
- 10.73.2.241
|
42
|
+
- '1842265924'
|
43
|
+
X-Backend-Url:
|
44
|
+
- "/Journey/JourneyResults/%7Bfrom%7D/to/%7Bto%7D/via/%7Bvia%7D?app_key=c381b49216f90558cf148c53cd5205b8&app_id=a09e631e&from=fulham%2Bbroadway%2Bunderground%2Bstation&to=edgware%2Broad%2Bunderground%2Bstation&via=&nationalSearch=false&timeIs=Departing&journeyPreference=&mode=&fromName=&toName=&viaName=&maxTransferMinutes=&maxWalkingMinutes=&cyclePreference=&adjustment=&alternativeCycle=false&alternativeWalking=true&applyHtmlMarkup=false"
|
45
|
+
X-Hash-Url:
|
46
|
+
- "/Journey/JourneyResults/%7Bfrom%7D/to/%7Bto%7D/via/%7Bvia%7D?app_key=c381b49216f90558cf148c53cd5205b8&app_id=a09e631e&from=fulham%2Bbroadway%2Bunderground%2Bstation&to=edgware%2Broad%2Bunderground%2Bstation&via=&nationalSearch=false&timeIs=Departing&journeyPreference=&mode=&fromName=&toName=&viaName=&maxTransferMinutes=&maxWalkingMinutes=&cyclePreference=&adjustment=&alternativeCycle=false&alternativeWalking=true&applyHtmlMarkup=false"
|
47
|
+
Access-Control-Allow-Origin:
|
48
|
+
- "*"
|
49
|
+
Transfer-Encoding:
|
50
|
+
- chunked
|
51
|
+
Date:
|
52
|
+
- Fri, 05 Sep 2014 19:42:32 GMT
|
53
|
+
Age:
|
54
|
+
- '0'
|
55
|
+
Via:
|
56
|
+
- 1.1 varnish
|
57
|
+
Connection:
|
58
|
+
- keep-alive
|
59
|
+
X-Banning:
|
60
|
+
- ''
|
61
|
+
X-Cache:
|
62
|
+
- MISS
|
63
|
+
body:
|
64
|
+
encoding: UTF-8
|
65
|
+
string: '{"$type":"Tfl.Api.Presentation.Entities.JourneyPlanner.DisambiguationResult,
|
66
|
+
Tfl.Api.Presentation.Entities","toLocationDisambiguation":{"$type":"Tfl.Api.Presentation.Entities.JourneyPlanner.Disambiguation,
|
67
|
+
Tfl.Api.Presentation.Entities","disambiguationOptions":[{"$type":"Tfl.Api.Presentation.Entities.JourneyPlanner.DisambiguationOption,
|
68
|
+
Tfl.Api.Presentation.Entities","parameterValue":"1000072","uri":"/journey/journeyresults/%7bfrom%7d/to/%7bto%7d/via/%7bvia%7d?app_key=c381b49216f90558cf148c53cd5205b8&app_id=a09e631e&from=fulham%2bbroadway%2bunderground%2bstation&to=edgware%2broad%2bunderground%2bstation&via=&nationalsearch=false&timeis=departing&journeypreference=&mode=&fromname=&toname=&vianame=&maxtransferminutes=&maxwalkingminutes=&cyclepreference=&adjustment=&alternativecycle=false&alternativewalking=true&applyhtmlmarkup=false","place":{"$type":"Tfl.Api.Presentation.Entities.StopPoint,
|
69
|
+
Tfl.Api.Presentation.Entities","naptanId":"940GZZLUERC","modes":["tube","bus"],"icsCode":"1000072","stopType":"stop","url":"http://api.prod3.live.tfl.gov.uk/StopPoint/940GZZLUERC","commonName":"Edgware
|
70
|
+
Road, Edgware Road (Circle Line) Underground Station","placeType":"StopPoint","additionalProperties":[],"lat":51.51980119415,"lon":-0.16774821282},"matchQuality":972}],"matchStatus":"list"},"fromLocationDisambiguation":{"$type":"Tfl.Api.Presentation.Entities.JourneyPlanner.Disambiguation,
|
71
|
+
Tfl.Api.Presentation.Entities","matchStatus":"identified"},"viaLocationDisambiguation":{"$type":"Tfl.Api.Presentation.Entities.JourneyPlanner.Disambiguation,
|
72
|
+
Tfl.Api.Presentation.Entities","matchStatus":"empty"},"recommendedMaxAgeMinutes":1440,"searchCriteria":{"$type":"Tfl.Api.Presentation.Entities.JourneyPlanner.SearchCriteria,
|
73
|
+
Tfl.Api.Presentation.Entities","dateTime":"2014-09-05T20:42:00","dateTimeType":"Departing"},"journeyVector":{"$type":"Tfl.Api.Presentation.Entities.JourneyPlanner.JourneyVector,
|
74
|
+
Tfl.Api.Presentation.Entities","from":"fulham+broadway+underground+station","to":"edgware+road+underground+station","via":"","uri":"/journey/journeyresults/%7bfrom%7d/to/%7bto%7d/via/%7bvia%7d?app_key=c381b49216f90558cf148c53cd5205b8&app_id=a09e631e&from=fulham%2bbroadway%2bunderground%2bstation&to=edgware%2broad%2bunderground%2bstation&via=&nationalsearch=false&timeis=departing&journeypreference=&mode=&fromname=&toname=&vianame=&maxtransferminutes=&maxwalkingminutes=&cyclepreference=&adjustment=&alternativecycle=false&alternativewalking=true&applyhtmlmarkup=false"}}'
|
75
|
+
http_version:
|
76
|
+
recorded_at: Fri, 05 Sep 2014 19:42:33 GMT
|
77
|
+
recorded_with: VCR 2.9.2
|
@@ -0,0 +1,574 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://api.tfl.gov.uk/Journey/JourneyResults/%7Bfrom%7D/to/%7Bto%7D/via/%7Bvia%7D?adjustment=&alternativeCycle=false&alternativeWalking=true&app_id=a09e631e&app_key=c381b49216f90558cf148c53cd5205b8&applyHtmlMarkup=false&cyclePreference=&from=fulham%2Bbroadway%2Bunderground%2Bstation&fromName=&journeyPreference=&maxTransferMinutes=&maxWalkingMinutes=&mode=&nationalSearch=false&timeIs=Departing&to=edgware%2Broad%2Bstation%2Bcircle%2Bline&toName=&via=&viaName=
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers: {}
|
10
|
+
response:
|
11
|
+
status:
|
12
|
+
code: 200
|
13
|
+
message: OK
|
14
|
+
headers:
|
15
|
+
Cache-Control:
|
16
|
+
- s-maxage=86400
|
17
|
+
Content-Type:
|
18
|
+
- application/json; charset=utf-8
|
19
|
+
Vary:
|
20
|
+
- Accept-Encoding
|
21
|
+
Server:
|
22
|
+
- Microsoft-IIS/8.0
|
23
|
+
Api-Entity-Payload:
|
24
|
+
- itineraryresult, disambiguationresult, mode, stoppoint, place, disruption,
|
25
|
+
plannedworks, line, linestatus
|
26
|
+
X-Aspnet-Version:
|
27
|
+
- 4.0.30319
|
28
|
+
Access-Control-Allow-Headers:
|
29
|
+
- Content-Type
|
30
|
+
Access-Control-Allow-Methods:
|
31
|
+
- GET,POST,PUT,DELETE,OPTIONS
|
32
|
+
X-Ttl-Rule:
|
33
|
+
- '0'
|
34
|
+
X-Cacheable:
|
35
|
+
- Yes. Cacheable
|
36
|
+
X-Ttl:
|
37
|
+
- '86400.000'
|
38
|
+
X-Backend:
|
39
|
+
- api
|
40
|
+
X-Varnish:
|
41
|
+
- 10.73.2.241
|
42
|
+
- '1840430546'
|
43
|
+
X-Backend-Url:
|
44
|
+
- "/Journey/JourneyResults/%7Bfrom%7D/to/%7Bto%7D/via/%7Bvia%7D?app_key=c381b49216f90558cf148c53cd5205b8&app_id=a09e631e&from=fulham%2Bbroadway%2Bunderground%2Bstation&to=edgware%2Broad%2Bstation%2Bcircle%2Bline&via=&nationalSearch=false&timeIs=Departing&journeyPreference=&mode=&fromName=&toName=&viaName=&maxTransferMinutes=&maxWalkingMinutes=&cyclePreference=&adjustment=&alternativeCycle=false&alternativeWalking=true&applyHtmlMarkup=false"
|
45
|
+
X-Hash-Url:
|
46
|
+
- "/Journey/JourneyResults/%7Bfrom%7D/to/%7Bto%7D/via/%7Bvia%7D?app_key=c381b49216f90558cf148c53cd5205b8&app_id=a09e631e&from=fulham%2Bbroadway%2Bunderground%2Bstation&to=edgware%2Broad%2Bstation%2Bcircle%2Bline&via=&nationalSearch=false&timeIs=Departing&journeyPreference=&mode=&fromName=&toName=&viaName=&maxTransferMinutes=&maxWalkingMinutes=&cyclePreference=&adjustment=&alternativeCycle=false&alternativeWalking=true&applyHtmlMarkup=false"
|
47
|
+
Access-Control-Allow-Origin:
|
48
|
+
- "*"
|
49
|
+
Transfer-Encoding:
|
50
|
+
- chunked
|
51
|
+
Date:
|
52
|
+
- Fri, 05 Sep 2014 18:08:25 GMT
|
53
|
+
Age:
|
54
|
+
- '0'
|
55
|
+
Via:
|
56
|
+
- 1.1 varnish
|
57
|
+
Connection:
|
58
|
+
- keep-alive
|
59
|
+
X-Banning:
|
60
|
+
- ''
|
61
|
+
X-Cache:
|
62
|
+
- MISS
|
63
|
+
body:
|
64
|
+
encoding: UTF-8
|
65
|
+
string: '{"$type":"Tfl.Api.Presentation.Entities.JourneyPlanner.DisambiguationResult,
|
66
|
+
Tfl.Api.Presentation.Entities","toLocationDisambiguation":{"$type":"Tfl.Api.Presentation.Entities.JourneyPlanner.Disambiguation,
|
67
|
+
Tfl.Api.Presentation.Entities","disambiguationOptions":[{"$type":"Tfl.Api.Presentation.Entities.JourneyPlanner.DisambiguationOption,
|
68
|
+
Tfl.Api.Presentation.Entities","parameterValue":"1000072","uri":"/journey/journeyresults/%7bfrom%7d/to/%7bto%7d/via/%7bvia%7d?app_key=c381b49216f90558cf148c53cd5205b8&app_id=a09e631e&from=fulham%2bbroadway%2bunderground%2bstation&to=edgware%2broad%2bstation%2bcircle%2bline&via=&nationalsearch=false&timeis=departing&journeypreference=&mode=&fromname=&toname=&vianame=&maxtransferminutes=&maxwalkingminutes=&cyclepreference=&adjustment=&alternativecycle=false&alternativewalking=true&applyhtmlmarkup=false","place":{"$type":"Tfl.Api.Presentation.Entities.StopPoint,
|
69
|
+
Tfl.Api.Presentation.Entities","naptanId":"940GZZLUERC","modes":["tube","bus"],"icsCode":"1000072","stopType":"stop","url":"http://api.prod3.live.tfl.gov.uk/StopPoint/940GZZLUERC","commonName":"Edgware
|
70
|
+
Road, Edgware Road (Circle Line) Station","placeType":"StopPoint","additionalProperties":[],"lat":51.51980119415,"lon":-0.16774821282},"matchQuality":1000}],"matchStatus":"list"},"fromLocationDisambiguation":{"$type":"Tfl.Api.Presentation.Entities.JourneyPlanner.Disambiguation,
|
71
|
+
Tfl.Api.Presentation.Entities","matchStatus":"identified"},"viaLocationDisambiguation":{"$type":"Tfl.Api.Presentation.Entities.JourneyPlanner.Disambiguation,
|
72
|
+
Tfl.Api.Presentation.Entities","matchStatus":"empty"},"recommendedMaxAgeMinutes":1440,"searchCriteria":{"$type":"Tfl.Api.Presentation.Entities.JourneyPlanner.SearchCriteria,
|
73
|
+
Tfl.Api.Presentation.Entities","dateTime":"2014-09-05T19:08:00","dateTimeType":"Departing"},"journeyVector":{"$type":"Tfl.Api.Presentation.Entities.JourneyPlanner.JourneyVector,
|
74
|
+
Tfl.Api.Presentation.Entities","from":"fulham+broadway+underground+station","to":"edgware+road+station+circle+line","via":"","uri":"/journey/journeyresults/%7bfrom%7d/to/%7bto%7d/via/%7bvia%7d?app_key=c381b49216f90558cf148c53cd5205b8&app_id=a09e631e&from=fulham%2bbroadway%2bunderground%2bstation&to=edgware%2broad%2bstation%2bcircle%2bline&via=&nationalsearch=false&timeis=departing&journeypreference=&mode=&fromname=&toname=&vianame=&maxtransferminutes=&maxwalkingminutes=&cyclepreference=&adjustment=&alternativecycle=false&alternativewalking=true&applyhtmlmarkup=false"}}'
|
75
|
+
http_version:
|
76
|
+
recorded_at: Fri, 05 Sep 2014 18:08:25 GMT
|
77
|
+
- request:
|
78
|
+
method: get
|
79
|
+
uri: http://api.tfl.gov.uk/Journey/JourneyResults/%7Bfrom%7D/to/%7Bto%7D/via/%7Bvia%7D?adjustment=&alternativeCycle=false&alternativeWalking=true&app_id=a09e631e&app_key=c381b49216f90558cf148c53cd5205b8&applyHtmlMarkup=false&cyclePreference=&from=fulham%2Bbroadway%2Bunderground%2Bstation&fromName=&journeyPreference=&maxTransferMinutes=&maxWalkingMinutes=&mode=&nationalSearch=false&timeIs=Departing&to=edgware%2Broad%2Bunderground%2Bstation%2Bcircle%2Bline&toName=&via=&viaName=
|
80
|
+
body:
|
81
|
+
encoding: US-ASCII
|
82
|
+
string: ''
|
83
|
+
headers: {}
|
84
|
+
response:
|
85
|
+
status:
|
86
|
+
code: 200
|
87
|
+
message: OK
|
88
|
+
headers:
|
89
|
+
Cache-Control:
|
90
|
+
- s-maxage=120
|
91
|
+
Content-Type:
|
92
|
+
- application/json; charset=utf-8
|
93
|
+
Vary:
|
94
|
+
- Accept-Encoding
|
95
|
+
Server:
|
96
|
+
- Microsoft-IIS/8.0
|
97
|
+
Api-Entity-Payload:
|
98
|
+
- itineraryresult, disambiguationresult, mode, stoppoint, place, disruption,
|
99
|
+
plannedworks, line, linestatus
|
100
|
+
X-Aspnet-Version:
|
101
|
+
- 4.0.30319
|
102
|
+
Access-Control-Allow-Headers:
|
103
|
+
- Content-Type
|
104
|
+
Access-Control-Allow-Methods:
|
105
|
+
- GET,POST,PUT,DELETE,OPTIONS
|
106
|
+
X-Ttl-Rule:
|
107
|
+
- '0'
|
108
|
+
X-Cacheable:
|
109
|
+
- Yes. Cacheable
|
110
|
+
X-Ttl:
|
111
|
+
- '120.000'
|
112
|
+
X-Backend:
|
113
|
+
- api
|
114
|
+
X-Varnish:
|
115
|
+
- 10.73.2.241
|
116
|
+
- '1840440220'
|
117
|
+
X-Backend-Url:
|
118
|
+
- "/Journey/JourneyResults/%7Bfrom%7D/to/%7Bto%7D/via/%7Bvia%7D?app_key=c381b49216f90558cf148c53cd5205b8&app_id=a09e631e&from=fulham%2Bbroadway%2Bunderground%2Bstation&to=edgware%2Broad%2Bunderground%2Bstation%2Bcircle%2Bline&via=&nationalSearch=false&timeIs=Departing&journeyPreference=&mode=&fromName=&toName=&viaName=&maxTransferMinutes=&maxWalkingMinutes=&cyclePreference=&adjustment=&alternativeCycle=false&alternativeWalking=true&applyHtmlMarkup=false"
|
119
|
+
X-Hash-Url:
|
120
|
+
- "/Journey/JourneyResults/%7Bfrom%7D/to/%7Bto%7D/via/%7Bvia%7D?app_key=c381b49216f90558cf148c53cd5205b8&app_id=a09e631e&from=fulham%2Bbroadway%2Bunderground%2Bstation&to=edgware%2Broad%2Bunderground%2Bstation%2Bcircle%2Bline&via=&nationalSearch=false&timeIs=Departing&journeyPreference=&mode=&fromName=&toName=&viaName=&maxTransferMinutes=&maxWalkingMinutes=&cyclePreference=&adjustment=&alternativeCycle=false&alternativeWalking=true&applyHtmlMarkup=false"
|
121
|
+
Access-Control-Allow-Origin:
|
122
|
+
- "*"
|
123
|
+
Transfer-Encoding:
|
124
|
+
- chunked
|
125
|
+
Date:
|
126
|
+
- Fri, 05 Sep 2014 18:08:46 GMT
|
127
|
+
Age:
|
128
|
+
- '0'
|
129
|
+
Via:
|
130
|
+
- 1.1 varnish
|
131
|
+
Connection:
|
132
|
+
- keep-alive
|
133
|
+
X-Banning:
|
134
|
+
- ''
|
135
|
+
X-Cache:
|
136
|
+
- MISS
|
137
|
+
body:
|
138
|
+
encoding: UTF-8
|
139
|
+
string: '{"$type":"Tfl.Api.Presentation.Entities.JourneyPlanner.ItineraryResult,
|
140
|
+
Tfl.Api.Presentation.Entities","journeys":[{"$type":"Tfl.Api.Presentation.Entities.JourneyPlanner.Journey,
|
141
|
+
Tfl.Api.Presentation.Entities","startDateTime":"2014-09-05T19:04:00","duration":20,"arrivalDateTime":"2014-09-05T19:24:00","legs":[{"$type":"Tfl.Api.Presentation.Entities.JourneyPlanner.Leg,
|
142
|
+
Tfl.Api.Presentation.Entities","duration":7,"instruction":{"$type":"Tfl.Api.Presentation.Entities.Instruction,
|
143
|
+
Tfl.Api.Presentation.Entities","summary":"District line to Gloucester Road","detailed":"District
|
144
|
+
line towards Upminster, or Tower Hill","steps":[]},"obstacles":[{"$type":"Tfl.Api.Presentation.Entities.JourneyPlanner.Obstacle,
|
145
|
+
Tfl.Api.Presentation.Entities","type":"WALKWAY","incline":"LEVEL","stopId":1000086,"position":"AFTER"}],"departureTime":"2014-09-05T19:04:00","arrivalTime":"2014-09-05T19:11:00","departurePoint":{"$type":"Tfl.Api.Presentation.Entities.StopPoint,
|
146
|
+
Tfl.Api.Presentation.Entities","naptanId":"940GZZLUFBY","platformName":"","modes":[],"icsCode":"1000084","commonName":"Fulham
|
147
|
+
Broadway Underground Station","placeType":"StopPoint","additionalProperties":[],"lat":51.480450998719995,"lon":-0.19506139367},"arrivalPoint":{"$type":"Tfl.Api.Presentation.Entities.StopPoint,
|
148
|
+
Tfl.Api.Presentation.Entities","naptanId":"940GZZLUGTR","platformName":"","modes":[],"icsCode":"1000086","commonName":"Gloucester
|
149
|
+
Road Underground Station","placeType":"StopPoint","additionalProperties":[],"lat":51.49429486422,"lon":-0.18311950336},"path":{"$type":"Tfl.Api.Presentation.Entities.JourneyPlanner.Path,
|
150
|
+
Tfl.Api.Presentation.Entities","lineString":"[[51.48045099872, -0.19506139367],[51.48096271821,
|
151
|
+
-0.19442191548],[51.48221892447, -0.19190953266],[51.48252747687, -0.19150846815],[51.48287530619,
|
152
|
+
-0.1913218794],[51.48323456445, -0.19129326273],[51.48376901583, -0.19154576645],[51.48432476984,
|
153
|
+
-0.19201347551],[51.4852554231, -0.19288406134],[51.48638166996, -0.19419346019],[51.4869247579,
|
154
|
+
-0.1950074147],[51.4869247579, -0.1950074147],[51.48735711678, -0.19563851015],[51.48760618899,
|
155
|
+
-0.19604638901],[51.48806151858, -0.19641732538],[51.48846903413, -0.19660290193],[51.48886623419,
|
156
|
+
-0.19670246323],[51.4892879602, -0.19664261041],[51.48977892556, -0.19640716989],[51.49009935842,
|
157
|
+
-0.19619285956],[51.49053241398, -0.19570040991],[51.49177165944, -0.1938364325],[51.49177165944,
|
158
|
+
-0.1938364325],[51.49250094582, -0.19272720411],[51.4940688846, -0.19060515021],[51.49446241221,
|
159
|
+
-0.18988367282],[51.49475396596, -0.18896453843],[51.49486799732, -0.18819649308],[51.49495269862,
|
160
|
+
-0.18669489221],[51.49488363497, -0.18571801418],[51.4946523523, -0.18471877111],[51.49429486422,
|
161
|
+
-0.18311950336]]","stopPoints":[{"$type":"Tfl.Api.Presentation.Entities.Identifier`1[[Tfl.Api.Presentation.Entities.StopPoint,
|
162
|
+
Tfl.Api.Presentation.Entities]], Tfl.Api.Presentation.Entities","id":"940GZZLUWBN","name":"West
|
163
|
+
Brompton Underground Station","uri":"/StopPoint/940GZZLUWBN"},{"$type":"Tfl.Api.Presentation.Entities.Identifier`1[[Tfl.Api.Presentation.Entities.StopPoint,
|
164
|
+
Tfl.Api.Presentation.Entities]], Tfl.Api.Presentation.Entities","id":"940GZZLUECT","name":"Earl''s
|
165
|
+
Court Underground Station","uri":"/StopPoint/940GZZLUECT"},{"$type":"Tfl.Api.Presentation.Entities.Identifier`1[[Tfl.Api.Presentation.Entities.StopPoint,
|
166
|
+
Tfl.Api.Presentation.Entities]], Tfl.Api.Presentation.Entities","id":"940GZZLUGTR","name":"Gloucester
|
167
|
+
Road Underground Station","uri":"/StopPoint/940GZZLUGTR"}]},"routeOptions":[{"$type":"Tfl.Api.Presentation.Entities.JourneyPlanner.RouteOption,
|
168
|
+
Tfl.Api.Presentation.Entities","name":"District","directions":["Upminster
|
169
|
+
Underground Station","Tower Hill Underground Station"],"lineIdentifier":{"$type":"Tfl.Api.Presentation.Entities.Identifier`1[[Tfl.Api.Presentation.Entities.Line,
|
170
|
+
Tfl.Api.Presentation.Entities]], Tfl.Api.Presentation.Entities","id":"district","name":"District","uri":"/Line/district"}}],"mode":{"$type":"Tfl.Api.Presentation.Entities.Identifier`1[[Tfl.Api.Presentation.Entities.Mode,
|
171
|
+
Tfl.Api.Presentation.Entities]], Tfl.Api.Presentation.Entities","id":"tube","name":"tube"},"disruptions":[{"$type":"Tfl.Api.Presentation.Entities.Disruption,
|
172
|
+
Tfl.Api.Presentation.Entities","category":"Information","categoryDescription":"Information","description":"DISTRICT
|
173
|
+
LINE TO KENSINGTON (OLYMPIA): The all day District Line service to Kensington
|
174
|
+
(Olympia) has been withdrawn on Monday to Friday except for a very limited
|
175
|
+
number of early morning and evening trains and during some events. Journey
|
176
|
+
Planner will show when this service is operating.","created":"2012-03-02T10:24:00","lastUpdate":"2012-02-10T17:52:00"},{"$type":"Tfl.Api.Presentation.Entities.Disruption,
|
177
|
+
Tfl.Api.Presentation.Entities","category":"RealTime","categoryDescription":"RealTime","description":"District
|
178
|
+
Line: Severe delays between Edgware Road and Wimbledon only, while we fix
|
179
|
+
a signal failure at East Putney. Tickets will be accepted on London Buses
|
180
|
+
via any reasonable route and on Southwest trains between Wimbledon and Waterloo.
|
181
|
+
GOOD SERVICE on the rest of the line.","created":"2014-09-05T18:47:00","lastUpdate":"2014-09-05T18:47:00"},{"$type":"Tfl.Api.Presentation.Entities.Disruption,
|
182
|
+
Tfl.Api.Presentation.Entities","category":"Information","categoryDescription":"Information","description":"FULHAM
|
183
|
+
BROADWAY, WIMBLEDON, SOUTHFIELDS, EARLS COURT AND WESTMINSTER STATIONS: A
|
184
|
+
ramp is provided at these stations providing step-free access onto District
|
185
|
+
line trains (as well as Circle line trains at Westminster). Please ask staff
|
186
|
+
in the ticket hall for assistance.","created":"2014-04-30T05:43:00","lastUpdate":"2012-06-12T22:26:00"},{"$type":"Tfl.Api.Presentation.Entities.Disruption,
|
187
|
+
Tfl.Api.Presentation.Entities","category":"PlannedWork","categoryDescription":"PlannedWork","description":"GLOUCESTER
|
188
|
+
ROAD STATION: From Saturday 24 May until mid-December, Piccadilly line trains
|
189
|
+
will not stop due to lift works. District and Circle line trains stop as normal.","created":"2014-08-26T10:35:00","lastUpdate":"2014-04-16T14:32:00"},{"$type":"Tfl.Api.Presentation.Entities.Disruption,
|
190
|
+
Tfl.Api.Presentation.Entities","category":"RealTime","categoryDescription":"RealTime","description":"Gloucester
|
191
|
+
Road: Part Closed - The Piccadilly lines are not serving this station while
|
192
|
+
upgrade work takes place.","created":"2014-09-05T04:17:00","lastUpdate":"2014-09-05T04:17:00"}],"plannedWorks":[],"isDisrupted":true,"hasFixedLocations":true},{"$type":"Tfl.Api.Presentation.Entities.JourneyPlanner.Leg,
|
193
|
+
Tfl.Api.Presentation.Entities","duration":11,"instruction":{"$type":"Tfl.Api.Presentation.Entities.Instruction,
|
194
|
+
Tfl.Api.Presentation.Entities","summary":"Circle line to Edgware Road (Circle
|
195
|
+
Line)","detailed":"Circle line towards Edgware Road (Circle Line)","steps":[]},"obstacles":[],"departureTime":"2014-09-05T19:13:00","arrivalTime":"2014-09-05T19:24:00","departurePoint":{"$type":"Tfl.Api.Presentation.Entities.StopPoint,
|
196
|
+
Tfl.Api.Presentation.Entities","naptanId":"940GZZLUGTR","platformName":"","modes":[],"icsCode":"1000086","commonName":"Gloucester
|
197
|
+
Road Underground Station","placeType":"StopPoint","additionalProperties":[],"lat":51.494314399429996,"lon":-0.18321956851},"arrivalPoint":{"$type":"Tfl.Api.Presentation.Entities.StopPoint,
|
198
|
+
Tfl.Api.Presentation.Entities","naptanId":"940GZZLUERC","platformName":"","modes":[],"icsCode":"1000072","commonName":"Edgware
|
199
|
+
Road (Circle Line) Underground Station","placeType":"StopPoint","additionalProperties":[],"lat":51.51994924453,"lon":-0.16743957470999998},"path":{"$type":"Tfl.Api.Presentation.Entities.JourneyPlanner.Path,
|
200
|
+
Tfl.Api.Presentation.Entities","lineString":"[[51.49431439943, -0.18321956851],[51.4946523523,
|
201
|
+
-0.18471877111],[51.49567424271, -0.18741539129],[51.49604373353, -0.18804902733],[51.49645482004,
|
202
|
+
-0.18846492482],[51.49719775605, -0.18882445493],[51.49784250122, -0.1892311093],[51.49853640261,
|
203
|
+
-0.18990956589],[51.50040661377, -0.19222717745],[51.50040661377, -0.19222717745],[51.50042480969,
|
204
|
+
-0.19224086533],[51.50105489779, -0.19286429661],[51.50175710039, -0.19349930141],[51.50238363418,
|
205
|
+
-0.19389237202],[51.5087472661, -0.19603287631],[51.5087472661, -0.19603287631],[51.50940708187,
|
206
|
+
-0.19625179633],[51.5098472229, -0.19622000201],[51.51027726938, -0.19611655068],[51.51068668341,
|
207
|
+
-0.19584097878],[51.51100245984, -0.19532411078],[51.51130570001, -0.19457714987],[51.5114752396,
|
208
|
+
-0.19390752378],[51.51201611145, -0.19107587954],[51.51213758488, -0.19020637202],[51.51234821211,
|
209
|
+
-0.18812274491],[51.51234821211, -0.18812274491],[51.51237116779, -0.18786242397],[51.51299002903,
|
210
|
+
-0.18136693342],[51.51309725427, -0.18074295069],[51.51336740449, -0.17960805168],[51.51374717573,
|
211
|
+
-0.17858406319],[51.51415636015, -0.17771741836],[51.51511872331, -0.17599274192],[51.51538093702,
|
212
|
+
-0.1755066499],[51.51538093702, -0.1755066499],[51.51699933429, -0.17260258651],[51.51791376282,
|
213
|
+
-0.17126877579],[51.51851813044, -0.17023561253],[51.51950689036, -0.16848072256],[51.51994924453,
|
214
|
+
-0.16743957471]]","stopPoints":[{"$type":"Tfl.Api.Presentation.Entities.Identifier`1[[Tfl.Api.Presentation.Entities.StopPoint,
|
215
|
+
Tfl.Api.Presentation.Entities]], Tfl.Api.Presentation.Entities","id":"940GZZLUHSK","name":"High
|
216
|
+
Street Kensington Underground Station","uri":"/StopPoint/940GZZLUHSK"},{"$type":"Tfl.Api.Presentation.Entities.Identifier`1[[Tfl.Api.Presentation.Entities.StopPoint,
|
217
|
+
Tfl.Api.Presentation.Entities]], Tfl.Api.Presentation.Entities","id":"940GZZLUNHG","name":"Notting
|
218
|
+
Hill Gate Underground Station","uri":"/StopPoint/940GZZLUNHG"},{"$type":"Tfl.Api.Presentation.Entities.Identifier`1[[Tfl.Api.Presentation.Entities.StopPoint,
|
219
|
+
Tfl.Api.Presentation.Entities]], Tfl.Api.Presentation.Entities","id":"940GZZLUBWT","name":"Bayswater
|
220
|
+
Underground Station","uri":"/StopPoint/940GZZLUBWT"},{"$type":"Tfl.Api.Presentation.Entities.Identifier`1[[Tfl.Api.Presentation.Entities.StopPoint,
|
221
|
+
Tfl.Api.Presentation.Entities]], Tfl.Api.Presentation.Entities","id":"940GZZLUPAC","name":"Paddington
|
222
|
+
Underground Station","uri":"/StopPoint/940GZZLUPAC"},{"$type":"Tfl.Api.Presentation.Entities.Identifier`1[[Tfl.Api.Presentation.Entities.StopPoint,
|
223
|
+
Tfl.Api.Presentation.Entities]], Tfl.Api.Presentation.Entities","id":"940GZZLUERC","name":"Edgware
|
224
|
+
Road (Circle Line) Underground Station","uri":"/StopPoint/940GZZLUERC"}]},"routeOptions":[{"$type":"Tfl.Api.Presentation.Entities.JourneyPlanner.RouteOption,
|
225
|
+
Tfl.Api.Presentation.Entities","name":"Circle","directions":["Edgware Road
|
226
|
+
(Circle Line) Underground Station"],"lineIdentifier":{"$type":"Tfl.Api.Presentation.Entities.Identifier`1[[Tfl.Api.Presentation.Entities.Line,
|
227
|
+
Tfl.Api.Presentation.Entities]], Tfl.Api.Presentation.Entities","id":"circle","name":"Circle","uri":"/Line/circle"}}],"mode":{"$type":"Tfl.Api.Presentation.Entities.Identifier`1[[Tfl.Api.Presentation.Entities.Mode,
|
228
|
+
Tfl.Api.Presentation.Entities]], Tfl.Api.Presentation.Entities","id":"tube","name":"tube"},"disruptions":[{"$type":"Tfl.Api.Presentation.Entities.Disruption,
|
229
|
+
Tfl.Api.Presentation.Entities","category":"RealTime","categoryDescription":"RealTime","description":"Circle
|
230
|
+
Line: Minor delays due to an earlier customer incident at Aldgate.","created":"2014-09-05T18:15:00","lastUpdate":"2014-09-05T18:15:00"},{"$type":"Tfl.Api.Presentation.Entities.Disruption,
|
231
|
+
Tfl.Api.Presentation.Entities","category":"PlannedWork","categoryDescription":"PlannedWork","description":"GLOUCESTER
|
232
|
+
ROAD STATION: From Saturday 24 May until mid-December, Piccadilly line trains
|
233
|
+
will not stop due to lift works. District and Circle line trains stop as normal.","created":"2014-08-26T10:35:00","lastUpdate":"2014-04-16T14:32:00"},{"$type":"Tfl.Api.Presentation.Entities.Disruption,
|
234
|
+
Tfl.Api.Presentation.Entities","category":"RealTime","categoryDescription":"RealTime","description":"Gloucester
|
235
|
+
Road: Part Closed - The Piccadilly lines are not serving this station while
|
236
|
+
upgrade work takes place.","created":"2014-09-05T04:17:00","lastUpdate":"2014-09-05T04:17:00"}],"plannedWorks":[],"isDisrupted":true,"hasFixedLocations":true}]},{"$type":"Tfl.Api.Presentation.Entities.JourneyPlanner.Journey,
|
237
|
+
Tfl.Api.Presentation.Entities","startDateTime":"2014-09-05T19:11:00","duration":18,"arrivalDateTime":"2014-09-05T19:29:00","legs":[{"$type":"Tfl.Api.Presentation.Entities.JourneyPlanner.Leg,
|
238
|
+
Tfl.Api.Presentation.Entities","duration":18,"instruction":{"$type":"Tfl.Api.Presentation.Entities.Instruction,
|
239
|
+
Tfl.Api.Presentation.Entities","summary":"District line to Edgware Road (Circle
|
240
|
+
Line)","detailed":"District line towards Edgware Road (Circle Line)","steps":[]},"obstacles":[],"departureTime":"2014-09-05T19:11:00","arrivalTime":"2014-09-05T19:29:00","departurePoint":{"$type":"Tfl.Api.Presentation.Entities.StopPoint,
|
241
|
+
Tfl.Api.Presentation.Entities","naptanId":"940GZZLUFBY","platformName":"","modes":[],"icsCode":"1000084","commonName":"Fulham
|
242
|
+
Broadway Underground Station","placeType":"StopPoint","additionalProperties":[],"lat":51.480450998719995,"lon":-0.19506139367},"arrivalPoint":{"$type":"Tfl.Api.Presentation.Entities.StopPoint,
|
243
|
+
Tfl.Api.Presentation.Entities","naptanId":"940GZZLUERC","platformName":"","modes":[],"icsCode":"1000072","commonName":"Edgware
|
244
|
+
Road (Circle Line) Underground Station","placeType":"StopPoint","additionalProperties":[],"lat":51.51994924453,"lon":-0.16743957470999998},"path":{"$type":"Tfl.Api.Presentation.Entities.JourneyPlanner.Path,
|
245
|
+
Tfl.Api.Presentation.Entities","lineString":"[[51.48045099872, -0.19506139367],[51.48096271821,
|
246
|
+
-0.19442191548],[51.48221892447, -0.19190953266],[51.48252747687, -0.19150846815],[51.48287530619,
|
247
|
+
-0.1913218794],[51.48323456445, -0.19129326273],[51.48376901583, -0.19154576645],[51.48432476984,
|
248
|
+
-0.19201347551],[51.4852554231, -0.19288406134],[51.48638166996, -0.19419346019],[51.4869247579,
|
249
|
+
-0.1950074147],[51.4869247579, -0.1950074147],[51.48735711678, -0.19563851015],[51.48760618899,
|
250
|
+
-0.19604638901],[51.48806151858, -0.19641732538],[51.48846903413, -0.19660290193],[51.48886623419,
|
251
|
+
-0.19670246323],[51.4892879602, -0.19664261041],[51.48977892556, -0.19640716989],[51.49009935842,
|
252
|
+
-0.19619285956],[51.49053241398, -0.19570040991],[51.49177165944, -0.1938364325],[51.49177165944,
|
253
|
+
-0.1938364325],[51.49250094582, -0.19272720411],[51.4940688846, -0.19060515021],[51.49512954593,
|
254
|
+
-0.18941065206],[51.49553627758, -0.18896234468],[51.49595399586, -0.18864325205],[51.49645482004,
|
255
|
+
-0.18846492482],[51.49719775605, -0.18882445493],[51.49784250122, -0.1892311093],[51.49853640261,
|
256
|
+
-0.18990956589],[51.50040661377, -0.19222717745],[51.50040661377, -0.19222717745],[51.50042480969,
|
257
|
+
-0.19224086533],[51.50105489779, -0.19286429661],[51.50175710039, -0.19349930141],[51.50238363418,
|
258
|
+
-0.19389237202],[51.5087472661, -0.19603287631],[51.5087472661, -0.19603287631],[51.50940708187,
|
259
|
+
-0.19625179633],[51.5098472229, -0.19622000201],[51.51027726938, -0.19611655068],[51.51068668341,
|
260
|
+
-0.19584097878],[51.51100245984, -0.19532411078],[51.51130570001, -0.19457714987],[51.5114752396,
|
261
|
+
-0.19390752378],[51.51201611145, -0.19107587954],[51.51213758488, -0.19020637202],[51.51234821211,
|
262
|
+
-0.18812274491],[51.51234821211, -0.18812274491],[51.51237116779, -0.18786242397],[51.51299002903,
|
263
|
+
-0.18136693342],[51.51309725427, -0.18074295069],[51.51336740449, -0.17960805168],[51.51374717573,
|
264
|
+
-0.17858406319],[51.51415636015, -0.17771741836],[51.51511872331, -0.17599274192],[51.51538093702,
|
265
|
+
-0.1755066499],[51.51538093702, -0.1755066499],[51.51699933429, -0.17260258651],[51.51791376282,
|
266
|
+
-0.17126877579],[51.51851813044, -0.17023561253],[51.51950689036, -0.16848072256],[51.51994924453,
|
267
|
+
-0.16743957471]]","stopPoints":[{"$type":"Tfl.Api.Presentation.Entities.Identifier`1[[Tfl.Api.Presentation.Entities.StopPoint,
|
268
|
+
Tfl.Api.Presentation.Entities]], Tfl.Api.Presentation.Entities","id":"940GZZLUWBN","name":"West
|
269
|
+
Brompton Underground Station","uri":"/StopPoint/940GZZLUWBN"},{"$type":"Tfl.Api.Presentation.Entities.Identifier`1[[Tfl.Api.Presentation.Entities.StopPoint,
|
270
|
+
Tfl.Api.Presentation.Entities]], Tfl.Api.Presentation.Entities","id":"940GZZLUECT","name":"Earl''s
|
271
|
+
Court Underground Station","uri":"/StopPoint/940GZZLUECT"},{"$type":"Tfl.Api.Presentation.Entities.Identifier`1[[Tfl.Api.Presentation.Entities.StopPoint,
|
272
|
+
Tfl.Api.Presentation.Entities]], Tfl.Api.Presentation.Entities","id":"940GZZLUHSK","name":"High
|
273
|
+
Street Kensington Underground Station","uri":"/StopPoint/940GZZLUHSK"},{"$type":"Tfl.Api.Presentation.Entities.Identifier`1[[Tfl.Api.Presentation.Entities.StopPoint,
|
274
|
+
Tfl.Api.Presentation.Entities]], Tfl.Api.Presentation.Entities","id":"940GZZLUNHG","name":"Notting
|
275
|
+
Hill Gate Underground Station","uri":"/StopPoint/940GZZLUNHG"},{"$type":"Tfl.Api.Presentation.Entities.Identifier`1[[Tfl.Api.Presentation.Entities.StopPoint,
|
276
|
+
Tfl.Api.Presentation.Entities]], Tfl.Api.Presentation.Entities","id":"940GZZLUBWT","name":"Bayswater
|
277
|
+
Underground Station","uri":"/StopPoint/940GZZLUBWT"},{"$type":"Tfl.Api.Presentation.Entities.Identifier`1[[Tfl.Api.Presentation.Entities.StopPoint,
|
278
|
+
Tfl.Api.Presentation.Entities]], Tfl.Api.Presentation.Entities","id":"940GZZLUPAC","name":"Paddington
|
279
|
+
Underground Station","uri":"/StopPoint/940GZZLUPAC"},{"$type":"Tfl.Api.Presentation.Entities.Identifier`1[[Tfl.Api.Presentation.Entities.StopPoint,
|
280
|
+
Tfl.Api.Presentation.Entities]], Tfl.Api.Presentation.Entities","id":"940GZZLUERC","name":"Edgware
|
281
|
+
Road (Circle Line) Underground Station","uri":"/StopPoint/940GZZLUERC"}]},"routeOptions":[{"$type":"Tfl.Api.Presentation.Entities.JourneyPlanner.RouteOption,
|
282
|
+
Tfl.Api.Presentation.Entities","name":"District","directions":["Edgware Road
|
283
|
+
(Circle Line) Underground Station"],"lineIdentifier":{"$type":"Tfl.Api.Presentation.Entities.Identifier`1[[Tfl.Api.Presentation.Entities.Line,
|
284
|
+
Tfl.Api.Presentation.Entities]], Tfl.Api.Presentation.Entities","id":"district","name":"District","uri":"/Line/district"}}],"mode":{"$type":"Tfl.Api.Presentation.Entities.Identifier`1[[Tfl.Api.Presentation.Entities.Mode,
|
285
|
+
Tfl.Api.Presentation.Entities]], Tfl.Api.Presentation.Entities","id":"tube","name":"tube"},"disruptions":[{"$type":"Tfl.Api.Presentation.Entities.Disruption,
|
286
|
+
Tfl.Api.Presentation.Entities","category":"Information","categoryDescription":"Information","description":"DISTRICT
|
287
|
+
LINE TO KENSINGTON (OLYMPIA): The all day District Line service to Kensington
|
288
|
+
(Olympia) has been withdrawn on Monday to Friday except for a very limited
|
289
|
+
number of early morning and evening trains and during some events. Journey
|
290
|
+
Planner will show when this service is operating.","created":"2012-03-02T10:24:00","lastUpdate":"2012-02-10T17:52:00"},{"$type":"Tfl.Api.Presentation.Entities.Disruption,
|
291
|
+
Tfl.Api.Presentation.Entities","category":"RealTime","categoryDescription":"RealTime","description":"District
|
292
|
+
Line: Severe delays between Edgware Road and Wimbledon only, while we fix
|
293
|
+
a signal failure at East Putney. Tickets will be accepted on London Buses
|
294
|
+
via any reasonable route and on Southwest trains between Wimbledon and Waterloo.
|
295
|
+
GOOD SERVICE on the rest of the line.","created":"2014-09-05T18:47:00","lastUpdate":"2014-09-05T18:47:00"},{"$type":"Tfl.Api.Presentation.Entities.Disruption,
|
296
|
+
Tfl.Api.Presentation.Entities","category":"Information","categoryDescription":"Information","description":"FULHAM
|
297
|
+
BROADWAY, WIMBLEDON, SOUTHFIELDS, EARLS COURT AND WESTMINSTER STATIONS: A
|
298
|
+
ramp is provided at these stations providing step-free access onto District
|
299
|
+
line trains (as well as Circle line trains at Westminster). Please ask staff
|
300
|
+
in the ticket hall for assistance.","created":"2014-04-30T05:43:00","lastUpdate":"2012-06-12T22:26:00"}],"plannedWorks":[],"isDisrupted":true,"hasFixedLocations":true}]},{"$type":"Tfl.Api.Presentation.Entities.JourneyPlanner.Journey,
|
301
|
+
Tfl.Api.Presentation.Entities","startDateTime":"2014-09-05T19:22:00","duration":17,"arrivalDateTime":"2014-09-05T19:39:00","legs":[{"$type":"Tfl.Api.Presentation.Entities.JourneyPlanner.Leg,
|
302
|
+
Tfl.Api.Presentation.Entities","duration":17,"instruction":{"$type":"Tfl.Api.Presentation.Entities.Instruction,
|
303
|
+
Tfl.Api.Presentation.Entities","summary":"District line to Edgware Road (Circle
|
304
|
+
Line)","detailed":"District line towards Edgware Road (Circle Line)","steps":[]},"obstacles":[],"departureTime":"2014-09-05T19:22:00","arrivalTime":"2014-09-05T19:39:00","departurePoint":{"$type":"Tfl.Api.Presentation.Entities.StopPoint,
|
305
|
+
Tfl.Api.Presentation.Entities","naptanId":"940GZZLUFBY","platformName":"","modes":[],"icsCode":"1000084","commonName":"Fulham
|
306
|
+
Broadway Underground Station","placeType":"StopPoint","additionalProperties":[],"lat":51.480450998719995,"lon":-0.19506139367},"arrivalPoint":{"$type":"Tfl.Api.Presentation.Entities.StopPoint,
|
307
|
+
Tfl.Api.Presentation.Entities","naptanId":"940GZZLUERC","platformName":"","modes":[],"icsCode":"1000072","commonName":"Edgware
|
308
|
+
Road (Circle Line) Underground Station","placeType":"StopPoint","additionalProperties":[],"lat":51.51994924453,"lon":-0.16743957470999998},"path":{"$type":"Tfl.Api.Presentation.Entities.JourneyPlanner.Path,
|
309
|
+
Tfl.Api.Presentation.Entities","lineString":"[[51.48045099872, -0.19506139367],[51.48096271821,
|
310
|
+
-0.19442191548],[51.48221892447, -0.19190953266],[51.48252747687, -0.19150846815],[51.48287530619,
|
311
|
+
-0.1913218794],[51.48323456445, -0.19129326273],[51.48376901583, -0.19154576645],[51.48432476984,
|
312
|
+
-0.19201347551],[51.4852554231, -0.19288406134],[51.48638166996, -0.19419346019],[51.4869247579,
|
313
|
+
-0.1950074147],[51.4869247579, -0.1950074147],[51.48735711678, -0.19563851015],[51.48760618899,
|
314
|
+
-0.19604638901],[51.48806151858, -0.19641732538],[51.48846903413, -0.19660290193],[51.48886623419,
|
315
|
+
-0.19670246323],[51.4892879602, -0.19664261041],[51.48977892556, -0.19640716989],[51.49009935842,
|
316
|
+
-0.19619285956],[51.49053241398, -0.19570040991],[51.49177165944, -0.1938364325],[51.49177165944,
|
317
|
+
-0.1938364325],[51.49250094582, -0.19272720411],[51.4940688846, -0.19060515021],[51.49512954593,
|
318
|
+
-0.18941065206],[51.49553627758, -0.18896234468],[51.49595399586, -0.18864325205],[51.49645482004,
|
319
|
+
-0.18846492482],[51.49719775605, -0.18882445493],[51.49784250122, -0.1892311093],[51.49853640261,
|
320
|
+
-0.18990956589],[51.50040661377, -0.19222717745],[51.50040661377, -0.19222717745],[51.50042480969,
|
321
|
+
-0.19224086533],[51.50105489779, -0.19286429661],[51.50175710039, -0.19349930141],[51.50238363418,
|
322
|
+
-0.19389237202],[51.5087472661, -0.19603287631],[51.5087472661, -0.19603287631],[51.50940708187,
|
323
|
+
-0.19625179633],[51.5098472229, -0.19622000201],[51.51027726938, -0.19611655068],[51.51068668341,
|
324
|
+
-0.19584097878],[51.51100245984, -0.19532411078],[51.51130570001, -0.19457714987],[51.5114752396,
|
325
|
+
-0.19390752378],[51.51201611145, -0.19107587954],[51.51213758488, -0.19020637202],[51.51234821211,
|
326
|
+
-0.18812274491],[51.51234821211, -0.18812274491],[51.51237116779, -0.18786242397],[51.51299002903,
|
327
|
+
-0.18136693342],[51.51309725427, -0.18074295069],[51.51336740449, -0.17960805168],[51.51374717573,
|
328
|
+
-0.17858406319],[51.51415636015, -0.17771741836],[51.51511872331, -0.17599274192],[51.51538093702,
|
329
|
+
-0.1755066499],[51.51538093702, -0.1755066499],[51.51699933429, -0.17260258651],[51.51791376282,
|
330
|
+
-0.17126877579],[51.51851813044, -0.17023561253],[51.51950689036, -0.16848072256],[51.51994924453,
|
331
|
+
-0.16743957471]]","stopPoints":[{"$type":"Tfl.Api.Presentation.Entities.Identifier`1[[Tfl.Api.Presentation.Entities.StopPoint,
|
332
|
+
Tfl.Api.Presentation.Entities]], Tfl.Api.Presentation.Entities","id":"940GZZLUWBN","name":"West
|
333
|
+
Brompton Underground Station","uri":"/StopPoint/940GZZLUWBN"},{"$type":"Tfl.Api.Presentation.Entities.Identifier`1[[Tfl.Api.Presentation.Entities.StopPoint,
|
334
|
+
Tfl.Api.Presentation.Entities]], Tfl.Api.Presentation.Entities","id":"940GZZLUECT","name":"Earl''s
|
335
|
+
Court Underground Station","uri":"/StopPoint/940GZZLUECT"},{"$type":"Tfl.Api.Presentation.Entities.Identifier`1[[Tfl.Api.Presentation.Entities.StopPoint,
|
336
|
+
Tfl.Api.Presentation.Entities]], Tfl.Api.Presentation.Entities","id":"940GZZLUHSK","name":"High
|
337
|
+
Street Kensington Underground Station","uri":"/StopPoint/940GZZLUHSK"},{"$type":"Tfl.Api.Presentation.Entities.Identifier`1[[Tfl.Api.Presentation.Entities.StopPoint,
|
338
|
+
Tfl.Api.Presentation.Entities]], Tfl.Api.Presentation.Entities","id":"940GZZLUNHG","name":"Notting
|
339
|
+
Hill Gate Underground Station","uri":"/StopPoint/940GZZLUNHG"},{"$type":"Tfl.Api.Presentation.Entities.Identifier`1[[Tfl.Api.Presentation.Entities.StopPoint,
|
340
|
+
Tfl.Api.Presentation.Entities]], Tfl.Api.Presentation.Entities","id":"940GZZLUBWT","name":"Bayswater
|
341
|
+
Underground Station","uri":"/StopPoint/940GZZLUBWT"},{"$type":"Tfl.Api.Presentation.Entities.Identifier`1[[Tfl.Api.Presentation.Entities.StopPoint,
|
342
|
+
Tfl.Api.Presentation.Entities]], Tfl.Api.Presentation.Entities","id":"940GZZLUPAC","name":"Paddington
|
343
|
+
Underground Station","uri":"/StopPoint/940GZZLUPAC"},{"$type":"Tfl.Api.Presentation.Entities.Identifier`1[[Tfl.Api.Presentation.Entities.StopPoint,
|
344
|
+
Tfl.Api.Presentation.Entities]], Tfl.Api.Presentation.Entities","id":"940GZZLUERC","name":"Edgware
|
345
|
+
Road (Circle Line) Underground Station","uri":"/StopPoint/940GZZLUERC"}]},"routeOptions":[{"$type":"Tfl.Api.Presentation.Entities.JourneyPlanner.RouteOption,
|
346
|
+
Tfl.Api.Presentation.Entities","name":"District","directions":["Edgware Road
|
347
|
+
(Circle Line) Underground Station"],"lineIdentifier":{"$type":"Tfl.Api.Presentation.Entities.Identifier`1[[Tfl.Api.Presentation.Entities.Line,
|
348
|
+
Tfl.Api.Presentation.Entities]], Tfl.Api.Presentation.Entities","id":"district","name":"District","uri":"/Line/district"}}],"mode":{"$type":"Tfl.Api.Presentation.Entities.Identifier`1[[Tfl.Api.Presentation.Entities.Mode,
|
349
|
+
Tfl.Api.Presentation.Entities]], Tfl.Api.Presentation.Entities","id":"tube","name":"tube"},"disruptions":[{"$type":"Tfl.Api.Presentation.Entities.Disruption,
|
350
|
+
Tfl.Api.Presentation.Entities","category":"Information","categoryDescription":"Information","description":"DISTRICT
|
351
|
+
LINE TO KENSINGTON (OLYMPIA): The all day District Line service to Kensington
|
352
|
+
(Olympia) has been withdrawn on Monday to Friday except for a very limited
|
353
|
+
number of early morning and evening trains and during some events. Journey
|
354
|
+
Planner will show when this service is operating.","created":"2012-03-02T10:24:00","lastUpdate":"2012-02-10T17:52:00"},{"$type":"Tfl.Api.Presentation.Entities.Disruption,
|
355
|
+
Tfl.Api.Presentation.Entities","category":"RealTime","categoryDescription":"RealTime","description":"District
|
356
|
+
Line: Severe delays between Edgware Road and Wimbledon only, while we fix
|
357
|
+
a signal failure at East Putney. Tickets will be accepted on London Buses
|
358
|
+
via any reasonable route and on Southwest trains between Wimbledon and Waterloo.
|
359
|
+
GOOD SERVICE on the rest of the line.","created":"2014-09-05T18:47:00","lastUpdate":"2014-09-05T18:47:00"},{"$type":"Tfl.Api.Presentation.Entities.Disruption,
|
360
|
+
Tfl.Api.Presentation.Entities","category":"Information","categoryDescription":"Information","description":"FULHAM
|
361
|
+
BROADWAY, WIMBLEDON, SOUTHFIELDS, EARLS COURT AND WESTMINSTER STATIONS: A
|
362
|
+
ramp is provided at these stations providing step-free access onto District
|
363
|
+
line trains (as well as Circle line trains at Westminster). Please ask staff
|
364
|
+
in the ticket hall for assistance.","created":"2014-04-30T05:43:00","lastUpdate":"2012-06-12T22:26:00"}],"plannedWorks":[],"isDisrupted":true,"hasFixedLocations":true}]},{"$type":"Tfl.Api.Presentation.Entities.JourneyPlanner.Journey,
|
365
|
+
Tfl.Api.Presentation.Entities","startDateTime":"2014-09-05T19:31:00","duration":17,"arrivalDateTime":"2014-09-05T19:48:00","legs":[{"$type":"Tfl.Api.Presentation.Entities.JourneyPlanner.Leg,
|
366
|
+
Tfl.Api.Presentation.Entities","duration":17,"instruction":{"$type":"Tfl.Api.Presentation.Entities.Instruction,
|
367
|
+
Tfl.Api.Presentation.Entities","summary":"District line to Edgware Road (Circle
|
368
|
+
Line)","detailed":"District line towards Edgware Road (Circle Line)","steps":[]},"obstacles":[],"departureTime":"2014-09-05T19:31:00","arrivalTime":"2014-09-05T19:48:00","departurePoint":{"$type":"Tfl.Api.Presentation.Entities.StopPoint,
|
369
|
+
Tfl.Api.Presentation.Entities","naptanId":"940GZZLUFBY","platformName":"","modes":[],"icsCode":"1000084","commonName":"Fulham
|
370
|
+
Broadway Underground Station","placeType":"StopPoint","additionalProperties":[],"lat":51.480450998719995,"lon":-0.19506139367},"arrivalPoint":{"$type":"Tfl.Api.Presentation.Entities.StopPoint,
|
371
|
+
Tfl.Api.Presentation.Entities","naptanId":"940GZZLUERC","platformName":"","modes":[],"icsCode":"1000072","commonName":"Edgware
|
372
|
+
Road (Circle Line) Underground Station","placeType":"StopPoint","additionalProperties":[],"lat":51.51994924453,"lon":-0.16743957470999998},"path":{"$type":"Tfl.Api.Presentation.Entities.JourneyPlanner.Path,
|
373
|
+
Tfl.Api.Presentation.Entities","lineString":"[[51.48045099872, -0.19506139367],[51.48096271821,
|
374
|
+
-0.19442191548],[51.48221892447, -0.19190953266],[51.48252747687, -0.19150846815],[51.48287530619,
|
375
|
+
-0.1913218794],[51.48323456445, -0.19129326273],[51.48376901583, -0.19154576645],[51.48432476984,
|
376
|
+
-0.19201347551],[51.4852554231, -0.19288406134],[51.48638166996, -0.19419346019],[51.4869247579,
|
377
|
+
-0.1950074147],[51.4869247579, -0.1950074147],[51.48735711678, -0.19563851015],[51.48760618899,
|
378
|
+
-0.19604638901],[51.48806151858, -0.19641732538],[51.48846903413, -0.19660290193],[51.48886623419,
|
379
|
+
-0.19670246323],[51.4892879602, -0.19664261041],[51.48977892556, -0.19640716989],[51.49009935842,
|
380
|
+
-0.19619285956],[51.49053241398, -0.19570040991],[51.49177165944, -0.1938364325],[51.49177165944,
|
381
|
+
-0.1938364325],[51.49250094582, -0.19272720411],[51.4940688846, -0.19060515021],[51.49512954593,
|
382
|
+
-0.18941065206],[51.49553627758, -0.18896234468],[51.49595399586, -0.18864325205],[51.49645482004,
|
383
|
+
-0.18846492482],[51.49719775605, -0.18882445493],[51.49784250122, -0.1892311093],[51.49853640261,
|
384
|
+
-0.18990956589],[51.50040661377, -0.19222717745],[51.50040661377, -0.19222717745],[51.50042480969,
|
385
|
+
-0.19224086533],[51.50105489779, -0.19286429661],[51.50175710039, -0.19349930141],[51.50238363418,
|
386
|
+
-0.19389237202],[51.5087472661, -0.19603287631],[51.5087472661, -0.19603287631],[51.50940708187,
|
387
|
+
-0.19625179633],[51.5098472229, -0.19622000201],[51.51027726938, -0.19611655068],[51.51068668341,
|
388
|
+
-0.19584097878],[51.51100245984, -0.19532411078],[51.51130570001, -0.19457714987],[51.5114752396,
|
389
|
+
-0.19390752378],[51.51201611145, -0.19107587954],[51.51213758488, -0.19020637202],[51.51234821211,
|
390
|
+
-0.18812274491],[51.51234821211, -0.18812274491],[51.51237116779, -0.18786242397],[51.51299002903,
|
391
|
+
-0.18136693342],[51.51309725427, -0.18074295069],[51.51336740449, -0.17960805168],[51.51374717573,
|
392
|
+
-0.17858406319],[51.51415636015, -0.17771741836],[51.51511872331, -0.17599274192],[51.51538093702,
|
393
|
+
-0.1755066499],[51.51538093702, -0.1755066499],[51.51699933429, -0.17260258651],[51.51791376282,
|
394
|
+
-0.17126877579],[51.51851813044, -0.17023561253],[51.51950689036, -0.16848072256],[51.51994924453,
|
395
|
+
-0.16743957471]]","stopPoints":[{"$type":"Tfl.Api.Presentation.Entities.Identifier`1[[Tfl.Api.Presentation.Entities.StopPoint,
|
396
|
+
Tfl.Api.Presentation.Entities]], Tfl.Api.Presentation.Entities","id":"940GZZLUWBN","name":"West
|
397
|
+
Brompton Underground Station","uri":"/StopPoint/940GZZLUWBN"},{"$type":"Tfl.Api.Presentation.Entities.Identifier`1[[Tfl.Api.Presentation.Entities.StopPoint,
|
398
|
+
Tfl.Api.Presentation.Entities]], Tfl.Api.Presentation.Entities","id":"940GZZLUECT","name":"Earl''s
|
399
|
+
Court Underground Station","uri":"/StopPoint/940GZZLUECT"},{"$type":"Tfl.Api.Presentation.Entities.Identifier`1[[Tfl.Api.Presentation.Entities.StopPoint,
|
400
|
+
Tfl.Api.Presentation.Entities]], Tfl.Api.Presentation.Entities","id":"940GZZLUHSK","name":"High
|
401
|
+
Street Kensington Underground Station","uri":"/StopPoint/940GZZLUHSK"},{"$type":"Tfl.Api.Presentation.Entities.Identifier`1[[Tfl.Api.Presentation.Entities.StopPoint,
|
402
|
+
Tfl.Api.Presentation.Entities]], Tfl.Api.Presentation.Entities","id":"940GZZLUNHG","name":"Notting
|
403
|
+
Hill Gate Underground Station","uri":"/StopPoint/940GZZLUNHG"},{"$type":"Tfl.Api.Presentation.Entities.Identifier`1[[Tfl.Api.Presentation.Entities.StopPoint,
|
404
|
+
Tfl.Api.Presentation.Entities]], Tfl.Api.Presentation.Entities","id":"940GZZLUBWT","name":"Bayswater
|
405
|
+
Underground Station","uri":"/StopPoint/940GZZLUBWT"},{"$type":"Tfl.Api.Presentation.Entities.Identifier`1[[Tfl.Api.Presentation.Entities.StopPoint,
|
406
|
+
Tfl.Api.Presentation.Entities]], Tfl.Api.Presentation.Entities","id":"940GZZLUPAC","name":"Paddington
|
407
|
+
Underground Station","uri":"/StopPoint/940GZZLUPAC"},{"$type":"Tfl.Api.Presentation.Entities.Identifier`1[[Tfl.Api.Presentation.Entities.StopPoint,
|
408
|
+
Tfl.Api.Presentation.Entities]], Tfl.Api.Presentation.Entities","id":"940GZZLUERC","name":"Edgware
|
409
|
+
Road (Circle Line) Underground Station","uri":"/StopPoint/940GZZLUERC"}]},"routeOptions":[{"$type":"Tfl.Api.Presentation.Entities.JourneyPlanner.RouteOption,
|
410
|
+
Tfl.Api.Presentation.Entities","name":"District","directions":["Edgware Road
|
411
|
+
(Circle Line) Underground Station"],"lineIdentifier":{"$type":"Tfl.Api.Presentation.Entities.Identifier`1[[Tfl.Api.Presentation.Entities.Line,
|
412
|
+
Tfl.Api.Presentation.Entities]], Tfl.Api.Presentation.Entities","id":"district","name":"District","uri":"/Line/district"}}],"mode":{"$type":"Tfl.Api.Presentation.Entities.Identifier`1[[Tfl.Api.Presentation.Entities.Mode,
|
413
|
+
Tfl.Api.Presentation.Entities]], Tfl.Api.Presentation.Entities","id":"tube","name":"tube"},"disruptions":[{"$type":"Tfl.Api.Presentation.Entities.Disruption,
|
414
|
+
Tfl.Api.Presentation.Entities","category":"Information","categoryDescription":"Information","description":"DISTRICT
|
415
|
+
LINE TO KENSINGTON (OLYMPIA): The all day District Line service to Kensington
|
416
|
+
(Olympia) has been withdrawn on Monday to Friday except for a very limited
|
417
|
+
number of early morning and evening trains and during some events. Journey
|
418
|
+
Planner will show when this service is operating.","created":"2012-03-02T10:24:00","lastUpdate":"2012-02-10T17:52:00"},{"$type":"Tfl.Api.Presentation.Entities.Disruption,
|
419
|
+
Tfl.Api.Presentation.Entities","category":"RealTime","categoryDescription":"RealTime","description":"District
|
420
|
+
Line: Severe delays between Edgware Road and Wimbledon only, while we fix
|
421
|
+
a signal failure at East Putney. Tickets will be accepted on London Buses
|
422
|
+
via any reasonable route and on Southwest trains between Wimbledon and Waterloo.
|
423
|
+
GOOD SERVICE on the rest of the line.","created":"2014-09-05T18:47:00","lastUpdate":"2014-09-05T18:47:00"},{"$type":"Tfl.Api.Presentation.Entities.Disruption,
|
424
|
+
Tfl.Api.Presentation.Entities","category":"Information","categoryDescription":"Information","description":"FULHAM
|
425
|
+
BROADWAY, WIMBLEDON, SOUTHFIELDS, EARLS COURT AND WESTMINSTER STATIONS: A
|
426
|
+
ramp is provided at these stations providing step-free access onto District
|
427
|
+
line trains (as well as Circle line trains at Westminster). Please ask staff
|
428
|
+
in the ticket hall for assistance.","created":"2014-04-30T05:43:00","lastUpdate":"2012-06-12T22:26:00"}],"plannedWorks":[],"isDisrupted":true,"hasFixedLocations":true}]},{"$type":"Tfl.Api.Presentation.Entities.JourneyPlanner.Journey,
|
429
|
+
Tfl.Api.Presentation.Entities","startDateTime":"2014-09-05T19:09:00","duration":85,"arrivalDateTime":"2014-09-05T20:34:00","legs":[{"$type":"Tfl.Api.Presentation.Entities.JourneyPlanner.Leg,
|
430
|
+
Tfl.Api.Presentation.Entities","duration":85,"instruction":{"$type":"Tfl.Api.Presentation.Entities.Instruction,
|
431
|
+
Tfl.Api.Presentation.Entities","summary":"Walk to Edgware Road (Circle Line)
|
432
|
+
Underground Station","detailed":"Walk to Edgware Road (Circle Line) Underground
|
433
|
+
Station","steps":[{"$type":"Tfl.Api.Presentation.Entities.InstructionStep,
|
434
|
+
Tfl.Api.Presentation.Entities","description":"Continue along Fulham Road for
|
435
|
+
1756 metres (25 minutes, 58 seconds).","turnDirection":"STRAIGHT","streetName":"Fulham
|
436
|
+
Road","distance":1756,"cumulativeDistance":1756,"skyDirection":263,"cumulativeTravelTime":1558,"latitude":-0.19445669845,"longitude":51.48008198965,"pathAttribute":{"$type":"Tfl.Api.Presentation.Entities.PathAttribute,
|
437
|
+
Tfl.Api.Presentation.Entities"}},{"$type":"Tfl.Api.Presentation.Entities.InstructionStep,
|
438
|
+
Tfl.Api.Presentation.Entities","description":"Turn left on to Onslow Gardens,
|
439
|
+
continue for 358 metres (5 minutes, 17 seconds).","turnDirection":"LEFT","streetName":"Onslow
|
440
|
+
Gardens","distance":358,"cumulativeDistance":2114,"skyDirection":138,"cumulativeTravelTime":1875,"latitude":-0.17559463518,"longitude":51.48936705559,"pathAttribute":{"$type":"Tfl.Api.Presentation.Entities.PathAttribute,
|
441
|
+
Tfl.Api.Presentation.Entities"}},{"$type":"Tfl.Api.Presentation.Entities.InstructionStep,
|
442
|
+
Tfl.Api.Presentation.Entities","description":"Continue along Queen''s Gate
|
443
|
+
for 256 metres (3 minutes, 48 seconds).","turnDirection":"STRAIGHT","streetName":"Queen''s
|
444
|
+
Gate","distance":256,"cumulativeDistance":2370,"skyDirection":172,"cumulativeTravelTime":2103,"latitude":-0.17842672715,"longitude":51.49203689054,"pathAttribute":{"$type":"Tfl.Api.Presentation.Entities.PathAttribute,
|
445
|
+
Tfl.Api.Presentation.Entities"}},{"$type":"Tfl.Api.Presentation.Entities.InstructionStep,
|
446
|
+
Tfl.Api.Presentation.Entities","description":"Continue along Queens Gate for
|
447
|
+
114 metres (1 minute, 42 seconds).","turnDirection":"STRAIGHT","streetName":"Queens
|
448
|
+
Gate","distance":114,"cumulativeDistance":2484,"skyDirection":172,"cumulativeTravelTime":2205,"latitude":-0.17889793507,"longitude":51.49431031664,"pathAttribute":{"$type":"Tfl.Api.Presentation.Entities.PathAttribute,
|
449
|
+
Tfl.Api.Presentation.Entities"}},{"$type":"Tfl.Api.Presentation.Entities.InstructionStep,
|
450
|
+
Tfl.Api.Presentation.Entities","description":"Continue along Queen''s Gate
|
451
|
+
for 689 metres (10 minutes, 15 seconds).","turnDirection":"STRAIGHT","streetName":"Queen''s
|
452
|
+
Gate","distance":689,"cumulativeDistance":3173,"skyDirection":171,"cumulativeTravelTime":2820,"latitude":-0.1790734229,"longitude":51.495329192819995,"pathAttribute":{"$type":"Tfl.Api.Presentation.Entities.PathAttribute,
|
453
|
+
Tfl.Api.Presentation.Entities"}},{"$type":"Tfl.Api.Presentation.Entities.InstructionStep,
|
454
|
+
Tfl.Api.Presentation.Entities","description":"Turn right on to Kensington
|
455
|
+
Road, continue for 5 metres (0 minutes, 4 seconds).","turnDirection":"RIGHT","streetName":"Kensington
|
456
|
+
Road","distance":5,"cumulativeDistance":3178,"skyDirection":259,"cumulativeTravelTime":2824,"latitude":-0.18037057516000002,"longitude":51.50146421456,"pathAttribute":{"$type":"Tfl.Api.Presentation.Entities.PathAttribute,
|
457
|
+
Tfl.Api.Presentation.Entities"}},{"$type":"Tfl.Api.Presentation.Entities.InstructionStep,
|
458
|
+
Tfl.Api.Presentation.Entities","description":"Turn left, continue for 1255
|
459
|
+
metres (18 minutes, 48 seconds).","turnDirection":"LEFT","streetName":"","distance":1255,"cumulativeDistance":4433,"skyDirection":173,"cumulativeTravelTime":3952,"latitude":-0.18029822046000002,"longitude":51.5014720844,"pathAttribute":{"$type":"Tfl.Api.Presentation.Entities.PathAttribute,
|
460
|
+
Tfl.Api.Presentation.Entities"}},{"$type":"Tfl.Api.Presentation.Entities.InstructionStep,
|
461
|
+
Tfl.Api.Presentation.Entities","description":"Turn right on to North Walk,
|
462
|
+
continue for 15 metres (0 minutes, 13 seconds).","turnDirection":"RIGHT","streetName":"North
|
463
|
+
Walk","distance":15,"cumulativeDistance":4448,"skyDirection":250,"cumulativeTravelTime":3965,"latitude":-0.17603797651,"longitude":51.51109979423,"pathAttribute":{"$type":"Tfl.Api.Presentation.Entities.PathAttribute,
|
464
|
+
Tfl.Api.Presentation.Entities"}},{"$type":"Tfl.Api.Presentation.Entities.InstructionStep,
|
465
|
+
Tfl.Api.Presentation.Entities","description":"Turn left, continue for 52 metres
|
466
|
+
(0 minutes, 46 seconds).","turnDirection":"LEFT","streetName":"","distance":52,"cumulativeDistance":4500,"skyDirection":168,"cumulativeTravelTime":4011,"latitude":-0.17583454876000001,"longitude":51.51114159288,"pathAttribute":{"$type":"Tfl.Api.Presentation.Entities.PathAttribute,
|
467
|
+
Tfl.Api.Presentation.Entities"}},{"$type":"Tfl.Api.Presentation.Entities.InstructionStep,
|
468
|
+
Tfl.Api.Presentation.Entities","description":"Turn left on to Bayswater Road,
|
469
|
+
continue for 19 metres (0 minutes, 18 seconds).","turnDirection":"LEFT","streetName":"Bayswater
|
470
|
+
Road","distance":19,"cumulativeDistance":4519,"skyDirection":78,"cumulativeTravelTime":4029,"latitude":-0.17597466822,"longitude":51.511602387960004,"pathAttribute":{"$type":"Tfl.Api.Presentation.Entities.PathAttribute,
|
471
|
+
Tfl.Api.Presentation.Entities"}},{"$type":"Tfl.Api.Presentation.Entities.InstructionStep,
|
472
|
+
Tfl.Api.Presentation.Entities","description":"Continue along Lancaster Terrace
|
473
|
+
for 133 metres (1 minute, 59 seconds).","turnDirection":"SHARP_RIGHT","streetName":"Lancaster
|
474
|
+
Terrace","distance":133,"cumulativeDistance":4652,"skyDirection":227,"cumulativeTravelTime":4148,"latitude":-0.17624975147,"longitude":51.511570695749995,"pathAttribute":{"$type":"Tfl.Api.Presentation.Entities.PathAttribute,
|
475
|
+
Tfl.Api.Presentation.Entities"}},{"$type":"Tfl.Api.Presentation.Entities.InstructionStep,
|
476
|
+
Tfl.Api.Presentation.Entities","description":"Take a slight right, continue
|
477
|
+
for 33 metres (0 minutes, 28 seconds).","turnDirection":"SLIGHT_RIGHT","streetName":"","distance":33,"cumulativeDistance":4685,"skyDirection":225,"cumulativeTravelTime":4176,"latitude":-0.17574363713,"longitude":51.51269587595,"pathAttribute":{"$type":"Tfl.Api.Presentation.Entities.PathAttribute,
|
478
|
+
Tfl.Api.Presentation.Entities"}},{"$type":"Tfl.Api.Presentation.Entities.InstructionStep,
|
479
|
+
Tfl.Api.Presentation.Entities","description":"Continue along Westbourne Street
|
480
|
+
for 46 metres (0 minutes, 41 seconds).","turnDirection":"SHARP_LEFT","streetName":"Westbourne
|
481
|
+
Street","distance":46,"cumulativeDistance":4731,"skyDirection":147,"cumulativeTravelTime":4217,"latitude":-0.17532200450000002,"longitude":51.51278823451,"pathAttribute":{"$type":"Tfl.Api.Presentation.Entities.PathAttribute,
|
482
|
+
Tfl.Api.Presentation.Entities"}},{"$type":"Tfl.Api.Presentation.Entities.InstructionStep,
|
483
|
+
Tfl.Api.Presentation.Entities","description":"Take a slight right on to Sussex
|
484
|
+
Gardens, continue for 795 metres (11 minutes, 38 seconds).","turnDirection":"SLIGHT_RIGHT","streetName":"Sussex
|
485
|
+
Gardens","distance":795,"cumulativeDistance":5526,"skyDirection":205,"cumulativeTravelTime":4915,"latitude":-0.17556653511999998,"longitude":51.513160729570004,"pathAttribute":{"$type":"Tfl.Api.Presentation.Entities.PathAttribute,
|
486
|
+
Tfl.Api.Presentation.Entities"}},{"$type":"Tfl.Api.Presentation.Entities.InstructionStep,
|
487
|
+
Tfl.Api.Presentation.Entities","description":"Continue along Old Marylebone
|
488
|
+
Road for 52 metres (0 minutes, 47 seconds).","turnDirection":"STRAIGHT","streetName":"Old
|
489
|
+
Marylebone Road","distance":52,"cumulativeDistance":5578,"skyDirection":220,"cumulativeTravelTime":4962,"latitude":-0.16745518372,"longitude":51.51812401741,"pathAttribute":{"$type":"Tfl.Api.Presentation.Entities.PathAttribute,
|
490
|
+
Tfl.Api.Presentation.Entities"}},{"$type":"Tfl.Api.Presentation.Entities.InstructionStep,
|
491
|
+
Tfl.Api.Presentation.Entities","description":"Turn left on to Cabbell Street,
|
492
|
+
continue for 155 metres (2 minutes, 18 seconds).","turnDirection":"LEFT","streetName":"Cabbell
|
493
|
+
Street","distance":155,"cumulativeDistance":5733,"skyDirection":134,"cumulativeTravelTime":5100,"latitude":-0.16695099836,"longitude":51.518475838,"pathAttribute":{"$type":"Tfl.Api.Presentation.Entities.PathAttribute,
|
494
|
+
Tfl.Api.Presentation.Entities"}}]},"obstacles":[],"departureTime":"2014-09-05T19:09:00","arrivalTime":"2014-09-05T20:34:00","departurePoint":{"$type":"Tfl.Api.Presentation.Entities.StopPoint,
|
495
|
+
Tfl.Api.Presentation.Entities","platformName":"","modes":[],"icsCode":"1000084","commonName":"Fulham
|
496
|
+
Broadway Underground Station","placeType":"StopPoint","additionalProperties":[],"lat":51.48021520613,"lon":-0.19844065678},"arrivalPoint":{"$type":"Tfl.Api.Presentation.Entities.StopPoint,
|
497
|
+
Tfl.Api.Presentation.Entities","platformName":"","modes":[],"icsCode":"1000072","commonName":"Edgware
|
498
|
+
Road (Circle Line) Underground Station","placeType":"StopPoint","additionalProperties":[],"lat":51.51967066665,"lon":-0.16802731771999999},"path":{"$type":"Tfl.Api.Presentation.Entities.JourneyPlanner.Path,
|
499
|
+
Tfl.Api.Presentation.Entities","lineString":"[[51.48021520613, -0.19844065678],[51.48008198965,
|
500
|
+
-0.19445669845],[51.48008853879, -0.19429802356],[51.48020982102, -0.19341474086],[51.48025731178,
|
501
|
+
-0.19299521978],[51.48027229324, -0.19221694455],[51.48019152004, -0.19164407787],[51.4801177327,
|
502
|
+
-0.19094132333],[51.48019005541, -0.18980074172],[51.48028269046, -0.18939383055],[51.48043801078,
|
503
|
+
-0.18897003297],[51.48050812838, -0.18885204244],[51.48062251388, -0.18868909275],[51.48074566379,
|
504
|
+
-0.18851139326],[51.48087846752, -0.18837651546],[51.48167261666, -0.18739451403],[51.48210674866,
|
505
|
+
-0.18697404125],[51.48270851522, -0.186345278],[51.48308671719, -0.18579738297],[51.48333256205,
|
506
|
+
-0.18541316082],[51.48369256272, -0.1848515705],[51.48410581377, -0.18424464778],[51.4843514304,
|
507
|
+
-0.18384601473],[51.48448266776, -0.18361035443],[51.48461390463, -0.18337469279],[51.4846923343,
|
508
|
+
-0.18321314344],[51.48477952767, -0.1830368422],[51.48487548468, -0.18284578889],[51.48498042833,
|
509
|
+
-0.18265437749],[51.48517256387, -0.18228666103],[51.48523368751, -0.1821690054],[51.48533840685,
|
510
|
+
-0.18196319667],[51.48553952711, -0.18159511692],[51.48572378853, -0.1812997211],[51.48582872957,
|
511
|
+
-0.1811083026],[51.48596063114, -0.18091581026],[51.4861880388, -0.18050346411],[51.48625814754,
|
512
|
+
-0.18038544573],[51.4863896011, -0.1801641603],[51.48660846596, -0.17978095377],[51.48679272264,
|
513
|
+
-0.17948554373],[51.48707427026, -0.17908542958],[51.48741738353, -0.17859643427],[51.48771578364,
|
514
|
+
-0.17812361774],[51.48852356476, -0.17686706392],[51.4888835229, -0.17630534248],[51.48936705559,
|
515
|
+
-0.17559463518],[51.49012953843, -0.17663014328],[51.49043214984, -0.17700699867],[51.49097986817,
|
516
|
+
-0.17753253807],[51.4916271114, -0.17809733746],[51.49203689054, -0.17842672715],[51.49271314632,
|
517
|
+
-0.17854382565],[51.49382323394, -0.1788021],[51.49431031664, -0.17889793507],[51.49532919282,
|
518
|
+
-0.1790734229],[51.49643006863, -0.17931768368],[51.49690816388, -0.17941388712],[51.49702566446,
|
519
|
+
-0.17945242574],[51.49775628748, -0.17959619828],[51.49793691997, -0.17964662983],[51.49884795163,
|
520
|
+
-0.17982644271],[51.49964192947, -0.17999651766],[51.50004790521, -0.18008119923],[51.50146421456,
|
521
|
+
-0.18037057516],[51.5014720844, -0.18029822046],[51.50178752039, -0.18034328899],[51.50202832883,
|
522
|
+
-0.18079476644],[51.5023626319, -0.18089672163],[51.5026041621, -0.18081506054],[51.502827495,
|
523
|
+
-0.1807197146],[51.50426165374, -0.17984127566],[51.50453756619, -0.17965737072],[51.50574927928,
|
524
|
+
-0.17893182945],[51.50674709103, -0.17833005986],[51.50682842053, -0.17835563601],[51.50703176401,
|
525
|
+
-0.1781313759],[51.50750618581, -0.17567713509],[51.50798293903, -0.17568691256],[51.50865065689,
|
526
|
+
-0.17583316743],[51.50926714075, -0.17615440113],[51.50976119576, -0.17612025994],[51.51022560236,
|
527
|
+
-0.17591436974],[51.51047768319, -0.17593312336],[51.51109979423, -0.17603797651],[51.51114159288,
|
528
|
+
-0.17583454876],[51.51160238796, -0.17597466822],[51.51157069575, -0.17624975147],[51.511666864,
|
529
|
+
-0.1760729732],[51.51189041628, -0.17599198672],[51.51218586357, -0.17590812761],[51.51269587595,
|
530
|
+
-0.17574363713],[51.51278350455, -0.1755960182],[51.51278823451, -0.1753220045],[51.51304390011,
|
531
|
+
-0.17557120284],[51.51316072957, -0.17556653512],[51.51353369745, -0.17526339236],[51.51367569486,
|
532
|
+
-0.17514242117],[51.51382690312, -0.17503549325],[51.51390666448, -0.17496024459],[51.51404664432,
|
533
|
+
-0.17470964204],[51.51442299155, -0.1740460424],[51.5145279189, -0.17385448556],[51.51465935799,
|
534
|
+
-0.17363304258],[51.51481641137, -0.17332409883],[51.51491257498, -0.17314730177],[51.51521005102,
|
535
|
+
-0.17261654646],[51.51528891307, -0.17248367671],[51.51550752456, -0.17208578425],[51.51572613467,
|
536
|
+
-0.17168788798],[51.51583128258, -0.17151072408],[51.51585756952, -0.17146643297],[51.5159539548,
|
537
|
+
-0.17130403182],[51.51604966607, -0.17109841838],[51.51625995978, -0.17074408453],[51.51647901455,
|
538
|
+
-0.1703749833],[51.51656618671, -0.17019853377],[51.51668009441, -0.17000659893],[51.51669761865,
|
539
|
+
-0.1699770704],[51.51722266752, -0.16904799154],[51.51728422629, -0.16895904334],[51.5173540972,
|
540
|
+
-0.16882652168],[51.51745901574, -0.16863494059],[51.517913734, -0.16780954716],[51.51795731812,
|
541
|
+
-0.16772131727],[51.51812401741, -0.16745518372],[51.5183614853, -0.16711413923],[51.518475838,
|
542
|
+
-0.16695099836],[51.51871557298, -0.16733054326],[51.51939117485, -0.16798087738],[51.51952710228,
|
543
|
+
-0.16804749262],[51.51963651911, -0.16814400003],[51.51967066665, -0.16802731772]]","stopPoints":[]},"routeOptions":[{"$type":"Tfl.Api.Presentation.Entities.JourneyPlanner.RouteOption,
|
544
|
+
Tfl.Api.Presentation.Entities","name":"","directions":[""]}],"mode":{"$type":"Tfl.Api.Presentation.Entities.Identifier`1[[Tfl.Api.Presentation.Entities.Mode,
|
545
|
+
Tfl.Api.Presentation.Entities]], Tfl.Api.Presentation.Entities","id":"walking","name":"walking"},"disruptions":[],"plannedWorks":[],"distance":5733.0,"isDisrupted":false,"hasFixedLocations":true}]}],"lines":[{"$type":"Tfl.Api.Presentation.Entities.Line,
|
546
|
+
Tfl.Api.Presentation.Entities","id":"circle","name":"Circle","modeName":"tube","created":"2014-08-15T14:32:38.407","modified":"2014-08-15T14:32:38.407","lineStatuses":[{"$type":"Tfl.Api.Presentation.Entities.LineStatus,
|
547
|
+
Tfl.Api.Presentation.Entities","id":0,"lineId":"circle","statusSeverity":9,"statusSeverityDescription":"Minor
|
548
|
+
Delays","reason":"Circle Line: Minor delays due to an earlier customer incident
|
549
|
+
at Aldgate.","created":"0001-01-01T00:00:00","validityPeriods":[{"$type":"Tfl.Api.Presentation.Entities.ValidityPeriod,
|
550
|
+
Tfl.Api.Presentation.Entities","fromDate":"2014-09-05T18:14:34","toDate":"2014-09-06T01:29:00","isNow":true}],"disruption":{"$type":"Tfl.Api.Presentation.Entities.Disruption,
|
551
|
+
Tfl.Api.Presentation.Entities","category":"RealTime","categoryDescription":"RealTime","description":"Circle
|
552
|
+
Line: Minor delays due to an earlier customer incident at Aldgate.","created":"2014-09-05T18:15:59","affectedRoutes":[],"affectedStops":[],"isWholeLine":true}}],"routeSections":[]},{"$type":"Tfl.Api.Presentation.Entities.Line,
|
553
|
+
Tfl.Api.Presentation.Entities","id":"district","name":"District","modeName":"tube","created":"2014-08-15T14:32:38.347","modified":"2014-08-15T14:32:38.347","lineStatuses":[{"$type":"Tfl.Api.Presentation.Entities.LineStatus,
|
554
|
+
Tfl.Api.Presentation.Entities","id":0,"lineId":"district","statusSeverity":6,"statusSeverityDescription":"Severe
|
555
|
+
Delays","reason":"District Line: Severe delays between Edgware Road and Wimbledon
|
556
|
+
only, while we fix a signal failure at East Putney. Tickets will be accepted
|
557
|
+
on London Buses via any reasonable route and on Southwest trains between Wimbledon
|
558
|
+
and Waterloo. GOOD SERVICE on the rest of the line.","created":"0001-01-01T00:00:00","validityPeriods":[{"$type":"Tfl.Api.Presentation.Entities.ValidityPeriod,
|
559
|
+
Tfl.Api.Presentation.Entities","fromDate":"2014-09-05T18:47:37","toDate":"2014-09-06T01:29:00","isNow":true}],"disruption":{"$type":"Tfl.Api.Presentation.Entities.Disruption,
|
560
|
+
Tfl.Api.Presentation.Entities","category":"RealTime","categoryDescription":"RealTime","description":"District
|
561
|
+
Line: Severe delays between Edgware Road and Wimbledon only, while we fix
|
562
|
+
a signal failure at East Putney. Tickets will be accepted on London Buses
|
563
|
+
via any reasonable route and on Southwest trains between Wimbledon and Waterloo.
|
564
|
+
GOOD SERVICE on the rest of the line.","created":"2014-09-05T18:47:59","affectedRoutes":[],"affectedStops":[]}}],"routeSections":[]}],"recommendedMaxAgeMinutes":2,"searchCriteria":{"$type":"Tfl.Api.Presentation.Entities.JourneyPlanner.SearchCriteria,
|
565
|
+
Tfl.Api.Presentation.Entities","dateTime":"2014-09-05T19:09:00","dateTimeType":"Departing","timeAdjustments":{"$type":"Tfl.Api.Presentation.Entities.JourneyPlanner.TimeAdjustments,
|
566
|
+
Tfl.Api.Presentation.Entities","earliest":{"$type":"Tfl.Api.Presentation.Entities.JourneyPlanner.TimeAdjustment,
|
567
|
+
Tfl.Api.Presentation.Entities","date":"20140905","time":"0300","timeIs":"departing","uri":"/journey/journeyresults/%7bfrom%7d/to/%7bto%7d/via/%7bvia%7d?app_key=c381b49216f90558cf148c53cd5205b8&app_id=a09e631e&from=fulham%2bbroadway%2bunderground%2bstation&to=edgware%2broad%2bunderground%2bstation%2bcircle%2bline&via=&nationalsearch=false&timeIs=departing&journeypreference=&mode=&fromname=&toname=&vianame=&maxtransferminutes=&maxwalkingminutes=&cyclepreference=&adjustment=&alternativecycle=false&alternativewalking=true&applyhtmlmarkup=false&time=0300&date=20140905"},"earlier":{"$type":"Tfl.Api.Presentation.Entities.JourneyPlanner.TimeAdjustment,
|
568
|
+
Tfl.Api.Presentation.Entities","date":"20140905","time":"1924","timeIs":"arriving","uri":"/journey/journeyresults/%7bfrom%7d/to/%7bto%7d/via/%7bvia%7d?app_key=c381b49216f90558cf148c53cd5205b8&app_id=a09e631e&from=fulham%2bbroadway%2bunderground%2bstation&to=edgware%2broad%2bunderground%2bstation%2bcircle%2bline&via=&nationalsearch=false&timeIs=arriving&journeypreference=&mode=&fromname=&toname=&vianame=&maxtransferminutes=&maxwalkingminutes=&cyclepreference=&adjustment=&alternativecycle=false&alternativewalking=true&applyhtmlmarkup=false&time=1924&date=20140905"},"later":{"$type":"Tfl.Api.Presentation.Entities.JourneyPlanner.TimeAdjustment,
|
569
|
+
Tfl.Api.Presentation.Entities","date":"20140905","time":"1931","timeIs":"departing","uri":"/journey/journeyresults/%7bfrom%7d/to/%7bto%7d/via/%7bvia%7d?app_key=c381b49216f90558cf148c53cd5205b8&app_id=a09e631e&from=fulham%2bbroadway%2bunderground%2bstation&to=edgware%2broad%2bunderground%2bstation%2bcircle%2bline&via=&nationalsearch=false&timeIs=departing&journeypreference=&mode=&fromname=&toname=&vianame=&maxtransferminutes=&maxwalkingminutes=&cyclepreference=&adjustment=&alternativecycle=false&alternativewalking=true&applyhtmlmarkup=false&time=1931&date=20140905"},"latest":{"$type":"Tfl.Api.Presentation.Entities.JourneyPlanner.TimeAdjustment,
|
570
|
+
Tfl.Api.Presentation.Entities","date":"20140906","time":"0300","timeIs":"arriving","uri":"/journey/journeyresults/%7bfrom%7d/to/%7bto%7d/via/%7bvia%7d?app_key=c381b49216f90558cf148c53cd5205b8&app_id=a09e631e&from=fulham%2bbroadway%2bunderground%2bstation&to=edgware%2broad%2bunderground%2bstation%2bcircle%2bline&via=&nationalsearch=false&timeIs=arriving&journeypreference=&mode=&fromname=&toname=&vianame=&maxtransferminutes=&maxwalkingminutes=&cyclepreference=&adjustment=&alternativecycle=false&alternativewalking=true&applyhtmlmarkup=false&time=0300&date=20140906"}}},"journeyVector":{"$type":"Tfl.Api.Presentation.Entities.JourneyPlanner.JourneyVector,
|
571
|
+
Tfl.Api.Presentation.Entities","from":"fulham+broadway+underground+station","to":"edgware+road+underground+station+circle+line","via":"","uri":"/journey/journeyresults/%7bfrom%7d/to/%7bto%7d/via/%7bvia%7d?app_key=c381b49216f90558cf148c53cd5205b8&app_id=a09e631e&from=fulham%2bbroadway%2bunderground%2bstation&to=edgware%2broad%2bunderground%2bstation%2bcircle%2bline&via=&nationalsearch=false&timeis=departing&journeypreference=&mode=&fromname=&toname=&vianame=&maxtransferminutes=&maxwalkingminutes=&cyclepreference=&adjustment=&alternativecycle=false&alternativewalking=true&applyhtmlmarkup=false"}}'
|
572
|
+
http_version:
|
573
|
+
recorded_at: Fri, 05 Sep 2014 18:08:46 GMT
|
574
|
+
recorded_with: VCR 2.9.2
|
data/spec/journey_spec.rb
CHANGED
@@ -29,6 +29,23 @@ describe TFLJourneyPlanner::Journey do
|
|
29
29
|
|
30
30
|
end
|
31
31
|
|
32
|
+
it 'should return an array of disruptions' do
|
33
|
+
VCR.use_cassette "disruptions", record: :none do
|
34
|
+
journeys = client.get_journeys from: "fulham broadway underground station", to: 'edgware road underground station circle line'
|
35
|
+
expect(journeys[0].find_disruptions).to include "District Line: Severe delays between Edgware Road and Wimbledon only, while we fix a signal failure at East Putney. Tickets will be accepted on London Buses via any reasonable route and on Southwest trains between Wimbledon and Waterloo. GOOD SERVICE on the rest of the line."
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
39
|
+
|
40
|
+
it 'should allow you to filter disruptions' do
|
41
|
+
VCR.use_cassette "disruptions", record: :none do
|
42
|
+
journeys = client.get_journeys from: "fulham broadway underground station", to: 'edgware road underground station circle line'
|
43
|
+
disruptions = journeys[0].find_disruptions(filter: :realtime)
|
44
|
+
expect(disruptions).to include "District Line: Severe delays between Edgware Road and Wimbledon only, while we fix a signal failure at East Putney. Tickets will be accepted on London Buses via any reasonable route and on Southwest trains between Wimbledon and Waterloo. GOOD SERVICE on the rest of the line."
|
45
|
+
expect(disruptions).not_to include 'FULHAM BROADWAY, WIMBLEDON, SOUTHFIELDS, EARLS COURT AND WESTMINSTER STATIONS: A ramp is provided at these stations providing step-free access onto District line trains (as well as Circle line trains at Westminster). Please ask staff in the ticket hall for assistance.'
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
32
49
|
|
33
50
|
|
34
51
|
|
data/spec/results_spec.rb
CHANGED
@@ -20,4 +20,13 @@ describe TFLJourneyPlanner::Results, vcr: true do
|
|
20
20
|
end
|
21
21
|
end
|
22
22
|
|
23
|
+
it 'must provide disambiguation options' do
|
24
|
+
VCR.use_cassette "disambiguation", record: :none do
|
25
|
+
expect(STDOUT).to receive(:puts).with "Did you mean?\n\n"
|
26
|
+
expect(STDOUT).to receive(:puts).with "Edgware Road, Edgware Road (Circle Line) Underground Station\n"
|
27
|
+
journeys = client.get_journeys from: "fulham broadway underground station", to: "edgware road underground station"
|
28
|
+
end
|
29
|
+
|
30
|
+
end
|
31
|
+
|
23
32
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: journey_planner
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- jpatel531
|
@@ -55,10 +55,12 @@ files:
|
|
55
55
|
- lib/journey_planner.rb
|
56
56
|
- lib/journey_planner/version.rb
|
57
57
|
- lib/results.rb
|
58
|
-
- lib/
|
58
|
+
- lib/rubyify_keys.rb
|
59
59
|
- lib/time_helpers.rb
|
60
60
|
- screenshots/jp_gmaps_ex.jpg
|
61
61
|
- spec/client_spec.rb
|
62
|
+
- spec/fixtures/tfl_jp_casettes/disambiguation.yml
|
63
|
+
- spec/fixtures/tfl_jp_casettes/disruptions.yml
|
62
64
|
- spec/fixtures/tfl_jp_casettes/hello.yml
|
63
65
|
- spec/journey_spec.rb
|
64
66
|
- spec/results_spec.rb
|
@@ -90,6 +92,8 @@ specification_version: 4
|
|
90
92
|
summary: Ruby wrapper for TFL API Journey Planner
|
91
93
|
test_files:
|
92
94
|
- spec/client_spec.rb
|
95
|
+
- spec/fixtures/tfl_jp_casettes/disambiguation.yml
|
96
|
+
- spec/fixtures/tfl_jp_casettes/disruptions.yml
|
93
97
|
- spec/fixtures/tfl_jp_casettes/hello.yml
|
94
98
|
- spec/journey_spec.rb
|
95
99
|
- spec/results_spec.rb
|