|
2 | 2 | "parameters": { |
3 | 3 | "api-version": "1.0", |
4 | 4 | "format": "json", |
5 | | - "query": "68fa6e31-d1a4-4457-a15b-8f5036a76a78---201909167EB6D19458C443BFAD897246FD28DAD4:0---121", |
| 5 | + "query": "6f1eb44e-255f-4d06-9491-a35ee7864e19---20200929FF43D18907D24B35A1A7454DE7231C89:0---81", |
6 | 6 | "detailType": [ |
7 | 7 | "geometry" |
8 | 8 | ] |
9 | 9 | }, |
10 | 10 | "responses": { |
11 | 11 | "200": { |
12 | 12 | "body": { |
13 | | - "departureTime": "2019-09-16T18:04:53Z", |
14 | | - "arrivalTime": "2019-09-16T18:08:07Z", |
| 13 | + "departureTime": "2020-09-29T20:48:05Z", |
| 14 | + "arrivalTime": "2020-09-29T20:53:25Z", |
15 | 15 | "legs": [ |
16 | 16 | { |
17 | | - "legType": "Bicycle", |
18 | | - "legStartTime": "2019-09-16T18:04:53Z", |
19 | | - "legEndTime": "2019-09-16T18:08:07Z", |
20 | | - "steps": [ |
| 17 | + "legType": "Wait", |
| 18 | + "legStartTime": "2020-09-29T20:48:05Z", |
| 19 | + "legEndTime": "2020-09-29T20:48:05Z", |
| 20 | + "lineGroup": { |
| 21 | + "lineGroupId": "0---211457", |
| 22 | + "agencyId": "0---321", |
| 23 | + "agencyName": "CTA", |
| 24 | + "lineNumber": "22", |
| 25 | + "caption1": "Clark", |
| 26 | + "caption2": "22 Clark", |
| 27 | + "color": "565A5C", |
| 28 | + "transitType": "Bus" |
| 29 | + }, |
| 30 | + "line": { |
| 31 | + "lineId": "0---1151684", |
| 32 | + "lineGroupId": "0---211457", |
| 33 | + "direction": "forward", |
| 34 | + "agencyId": "0---321", |
| 35 | + "lineNumber": "22", |
| 36 | + "lineDestination": "Southbound - Harrison" |
| 37 | + }, |
| 38 | + "stops": [ |
| 39 | + { |
| 40 | + "stopId": "0---161771", |
| 41 | + "stopKey": "1853", |
| 42 | + "stopName": "Clark & Oak (South)", |
| 43 | + "stopCode": "1853", |
| 44 | + "position": { |
| 45 | + "latitude": 41.900657, |
| 46 | + "longitude": -87.631426 |
| 47 | + }, |
| 48 | + "mainTransitType": "Bus", |
| 49 | + "mainAgencyId": "0---321", |
| 50 | + "mainAgencyName": "CTA" |
| 51 | + }, |
| 52 | + { |
| 53 | + "stopId": "0---33004397", |
| 54 | + "stopKey": "18255", |
| 55 | + "stopName": "Clark & Huron (South)", |
| 56 | + "stopCode": "18255", |
| 57 | + "position": { |
| 58 | + "latitude": 41.894729, |
| 59 | + "longitude": -87.631288 |
| 60 | + }, |
| 61 | + "mainTransitType": "Bus", |
| 62 | + "mainAgencyId": "0---321", |
| 63 | + "mainAgencyName": "CTA" |
| 64 | + } |
| 65 | + ], |
| 66 | + "waitOnVehicle": "false" |
| 67 | + }, |
| 68 | + { |
| 69 | + "legType": "Bus", |
| 70 | + "legStartTime": "2020-09-29T20:48:05Z", |
| 71 | + "legEndTime": "2020-09-29T20:51:15Z", |
| 72 | + "lineGroup": { |
| 73 | + "lineGroupId": "81---211457", |
| 74 | + "agencyId": "81---321", |
| 75 | + "agencyName": "CTA", |
| 76 | + "lineNumber": "22", |
| 77 | + "caption1": "Clark", |
| 78 | + "caption2": "22 Clark", |
| 79 | + "color": "565A5C", |
| 80 | + "transitType": "Bus" |
| 81 | + }, |
| 82 | + "line": { |
| 83 | + "lineId": "81---1151684", |
| 84 | + "lineGroupId": "81---211457", |
| 85 | + "direction": "forward", |
| 86 | + "agencyId": "81---321", |
| 87 | + "lineNumber": "22", |
| 88 | + "lineDestination": "Southbound - Harrison" |
| 89 | + }, |
| 90 | + "stops": [ |
21 | 91 | { |
22 | | - "direction": { |
23 | | - "relativeDirection": "depart" |
| 92 | + "stopId": "81---161771", |
| 93 | + "stopKey": "1853", |
| 94 | + "stopName": "Clark & Oak (South)", |
| 95 | + "stopCode": "1853", |
| 96 | + "position": { |
| 97 | + "latitude": 41.900657, |
| 98 | + "longitude": -87.631426 |
24 | 99 | }, |
25 | | - "streetName": "3rd Avenue" |
| 100 | + "mainTransitType": "Bus", |
| 101 | + "mainAgencyId": "81---321", |
| 102 | + "mainAgencyName": "CTA" |
26 | 103 | }, |
27 | 104 | { |
28 | | - "direction": { |
29 | | - "relativeDirection": "right" |
| 105 | + "stopId": "81---161772", |
| 106 | + "stopKey": "1854", |
| 107 | + "stopName": "Clark & Delaware (South)", |
| 108 | + "stopCode": "1854", |
| 109 | + "position": { |
| 110 | + "latitude": 41.899361, |
| 111 | + "longitude": -87.631386 |
30 | 112 | }, |
31 | | - "streetName": "Dean Street" |
| 113 | + "mainTransitType": "Bus", |
| 114 | + "mainAgencyId": "81---321", |
| 115 | + "mainAgencyName": "CTA" |
32 | 116 | }, |
33 | 117 | { |
34 | | - "direction": { |
35 | | - "relativeDirection": "right" |
| 118 | + "stopId": "81---33004397", |
| 119 | + "stopKey": "18255", |
| 120 | + "stopName": "Clark & Huron (South)", |
| 121 | + "stopCode": "18255", |
| 122 | + "position": { |
| 123 | + "latitude": 41.894729, |
| 124 | + "longitude": -87.631288 |
36 | 125 | }, |
37 | | - "streetName": "5th Avenue" |
| 126 | + "mainTransitType": "Bus", |
| 127 | + "mainAgencyId": "81---321", |
| 128 | + "mainAgencyName": "CTA" |
38 | 129 | } |
39 | 130 | ], |
40 | | - "origin": { |
41 | | - "position": { |
42 | | - "latitude": 40.680903, |
43 | | - "longitude": -73.983723 |
44 | | - } |
45 | | - }, |
46 | | - "destination": { |
47 | | - "position": { |
48 | | - "latitude": 40.682051, |
49 | | - "longitude": -73.976702 |
50 | | - } |
51 | | - }, |
52 | 131 | "geometry": { |
53 | 132 | "type": "LineString", |
54 | 133 | "coordinates": [ |
55 | 134 | [ |
56 | | - -73.98373, |
57 | | - 40.6809 |
58 | | - ], |
59 | | - [ |
60 | | - -73.98371, |
61 | | - 40.68089 |
62 | | - ], |
63 | | - [ |
64 | | - -73.98328, |
65 | | - 40.68152 |
66 | | - ], |
67 | | - [ |
68 | | - -73.9831, |
69 | | - 40.68179 |
70 | | - ], |
71 | | - [ |
72 | | - -73.98303, |
73 | | - 40.68189 |
74 | | - ], |
75 | | - [ |
76 | | - -73.98302, |
77 | | - 40.68191 |
78 | | - ], |
79 | | - [ |
80 | | - -73.9829, |
81 | | - 40.68208 |
82 | | - ], |
83 | | - [ |
84 | | - -73.98286, |
85 | | - 40.68214 |
86 | | - ], |
87 | | - [ |
88 | | - -73.9828, |
89 | | - 40.68223 |
| 135 | + -87.63157, |
| 136 | + 41.90064 |
90 | 137 | ], |
91 | 138 | [ |
92 | | - -73.98243, |
93 | | - 40.68278 |
| 139 | + -87.63156, |
| 140 | + 41.90057 |
94 | 141 | ], |
95 | 142 | [ |
96 | | - -73.98199, |
97 | | - 40.68342 |
| 143 | + -87.63153, |
| 144 | + 41.90045 |
98 | 145 | ], |
99 | 146 | [ |
100 | | - -73.98161, |
101 | | - 40.68398 |
| 147 | + -87.6315, |
| 148 | + 41.90029 |
102 | 149 | ], |
103 | 150 | [ |
104 | | - -73.98157, |
105 | | - 40.68405 |
| 151 | + -87.63121, |
| 152 | + 41.89508 |
106 | 153 | ], |
107 | 154 | [ |
108 | | - -73.9812, |
109 | | - 40.6839 |
| 155 | + -87.63121, |
| 156 | + 41.89498 |
110 | 157 | ], |
111 | 158 | [ |
112 | | - -73.97984, |
113 | | - 40.68338 |
| 159 | + -87.63121, |
| 160 | + 41.89487 |
114 | 161 | ], |
115 | 162 | [ |
116 | | - -73.9794, |
117 | | - 40.6832 |
| 163 | + -87.63121, |
| 164 | + 41.89481 |
118 | 165 | ], |
119 | 166 | [ |
120 | | - -73.97924, |
121 | | - 40.68314 |
| 167 | + -87.6312, |
| 168 | + 41.89476 |
122 | 169 | ], |
123 | 170 | [ |
124 | | - -73.97912, |
125 | | - 40.68309 |
| 171 | + -87.6312, |
| 172 | + 41.89473 |
126 | 173 | ], |
127 | 174 | [ |
128 | | - -73.97899, |
129 | | - 40.68304 |
130 | | - ], |
131 | | - [ |
132 | | - -73.97675, |
133 | | - 40.68217 |
134 | | - ], |
135 | | - [ |
136 | | - -73.97659, |
137 | | - 40.68211 |
138 | | - ], |
139 | | - [ |
140 | | - -73.97665, |
141 | | - 40.68203 |
142 | | - ], |
143 | | - [ |
144 | | - -73.97665, |
145 | | - 40.68203 |
146 | | - ], |
147 | | - [ |
148 | | - -73.97671, |
149 | | - 40.68205 |
| 175 | + -87.6312, |
| 176 | + 41.89472 |
150 | 177 | ] |
151 | 178 | ] |
| 179 | + }, |
| 180 | + "legFare": { |
| 181 | + "fares": [ |
| 182 | + { |
| 183 | + "price": { |
| 184 | + "amount": 225, |
| 185 | + "currencyCode": "USD" |
| 186 | + }, |
| 187 | + "usage": "pay" |
| 188 | + } |
| 189 | + ] |
152 | 190 | } |
153 | 191 | } |
154 | | - ] |
| 192 | + ], |
| 193 | + "itineraryFare": { |
| 194 | + "price": { |
| 195 | + "amount": 225, |
| 196 | + "currencyCode": "USD" |
| 197 | + }, |
| 198 | + "tickets": [ |
| 199 | + { |
| 200 | + "amount": 225, |
| 201 | + "currencyCode": "USD" |
| 202 | + } |
| 203 | + ] |
| 204 | + } |
155 | 205 | } |
156 | 206 | }, |
157 | 207 | "400": { |
|
0 commit comments