-
Notifications
You must be signed in to change notification settings - Fork 0
/
QPXresponseExample.json
273 lines (269 loc) · 11.5 KB
/
QPXresponseExample.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
// https://developers.google.com/qpx-express/v1/trips/search
{
"data": {
"kind": "qpxExpress#tripsSearch",
"trips": {
"kind": "qpxexpress#tripOptions",
"requestId": "WA36wnePkr48RkoPC0Nq7i",
"data": {
"kind": "qpxexpress#data",
"airport": [// ... contains all the airports code and name
{
"kind": "qpxexpress#airportData",
"code": "AUS",
"city": "AUS",
"name": "Austin-Bergstrom International"
}
],
"aircraft": [ // ... contains all the aircrafts
{
"kind": "qpxexpress#aircraftData",
"code": "319",
"name": "Airbus A319"
}
],
"tax": [ // ... contains all the taxes
{
"kind": "qpxexpress#taxData",
"id": "ZP",
"name": "US Flight Segment Tax"
}
],
"carrier": [{
"kind": "qpxexpress#carrierData",
"code": "UA",
"name": "United Airlines, Inc."
}]
},
"tripOption": [
{
"kind": "qpxexpress#tripOption",
"saleTotal": "USD455.20",
"id": "Owge5IUfwE4VqWGZrEK6ZJ00O",
"slice": [{
"kind": "qpxexpress#sliceInfo",
"duration": 379,
"segment": [{
"kind": "qpxexpress#segmentInfo",
"duration": 177,
"flight": {
"carrier": "UA",
"number": "1105"
},
"id": "GH9jStxE70MB8WPZ",
"cabin": "COACH",
"bookingCode": "S",
"bookingCodeCount": 9,
"marriedSegmentGroup": "0",
"leg": [{
"kind": "qpxexpress#legInfo",
"id": "LsJpwGiwv2+R7odH",
"aircraft": "739",
"arrivalTime": "2016-02-24T20:25-06:00",
"departureTime": "2016-02-24T18:28-05:00",
"origin": "MIA",
"destination": "IAH",
"destinationTerminal": "C",
"duration": 177,
"onTimePerformance": 80,
"mileage": 962,
"meal": "Food and Beverages for Purchase",
"secure": true
}],
"connectionDuration": 150
}, {
"kind": "qpxexpress#segmentInfo",
"duration": 52,
"flight": {
"carrier": "UA",
"number": "5756"
},
"id": "Gzbyzj8xWetL+RlV",
"cabin": "COACH",
"bookingCode": "S",
"bookingCodeCount": 9,
"marriedSegmentGroup": "0",
"leg": [{
"kind": "qpxexpress#legInfo",
"id": "LZIPg0yaKw0YVN-g",
"aircraft": "CR7",
"arrivalTime": "2016-02-24T23:47-06:00",
"departureTime": "2016-02-24T22:55-06:00",
"origin": "IAH",
"destination": "AUS",
"originTerminal": "B",
"duration": 52,
"operatingDisclosure": "OPERATED BY SKYWEST DBA UNITED EXPRESS",
"onTimePerformance": 60,
"mileage": 139,
"secure": true
}]
}]
},
{
"kind": "qpxexpress#sliceInfo",
"duration": 448,
"segment": [{
"kind": "qpxexpress#segmentInfo",
"duration": 62,
"flight": {
"carrier": "UA",
"number": "3579"
},
"id": "GM630mUToTypidN6",
"cabin": "COACH",
"bookingCode": "L",
"bookingCodeCount": 1,
"marriedSegmentGroup": "1",
"leg": [{
"kind": "qpxexpress#legInfo",
"id": "L3eAlHWBobIuvhdZ",
"aircraft": "E70",
"arrivalTime": "2016-02-29T15:26-06:00",
"departureTime": "2016-02-29T14:24-06:00",
"origin": "AUS",
"destination": "IAH",
"destinationTerminal": "C",
"duration": 62,
"operatingDisclosure": "OPERATED BY SHUTTLE AMERICA DBA UNITED EXPRESS",
"mileage": 139,
"secure": true
}],
"connectionDuration": 240
}, {
"kind": "qpxexpress#segmentInfo",
"duration": 146,
"flight": {
"carrier": "UA",
"number": "1061"
},
"id": "GF93NHxfJgtZAmFR",
"cabin": "COACH",
"bookingCode": "L",
"bookingCodeCount": 1,
"marriedSegmentGroup": "1",
"leg": [{
"kind": "qpxexpress#legInfo",
"id": "L5OMWEOcEl+3b8Rw",
"aircraft": "739",
"arrivalTime": "2016-02-29T22:52-05:00",
"departureTime": "2016-02-29T19:26-06:00",
"origin": "IAH",
"destination": "MIA",
"originTerminal": "C",
"duration": 146,
"mileage": 962,
"meal": "Food and Beverages for Purchase",
"secure": true
}]
}]
}
],
"pricing": [{
"kind": "qpxexpress#pricingInfo",
"fare": [{
"kind": "qpxexpress#fareInfo",
"id": "AnSdZ1kPjy4nFsZlBDH/3jUBf2jjtkfEoCplOGx5jZ3U",
"carrier": "UA",
"origin": "MIA",
"destination": "AUS",
"basisCode": "SAA00AHN"
}, {
"kind": "qpxexpress#fareInfo",
"id": "AdwiCcEp/0fcRu7Fuo9wIJXJ10ox6fhDiNNX+R5QWN2/",
"carrier": "UA",
"origin": "AUS",
"destination": "MIA",
"basisCode": "LAA07AHN"
}],
"segmentPricing": [{
"kind": "qpxexpress#segmentPricing",
"fareId": "AnSdZ1kPjy4nFsZlBDH/3jUBf2jjtkfEoCplOGx5jZ3U",
"segmentId": "GH9jStxE70MB8WPZ"
}, {
"kind": "qpxexpress#segmentPricing",
"fareId": "AnSdZ1kPjy4nFsZlBDH/3jUBf2jjtkfEoCplOGx5jZ3U",
"segmentId": "Gzbyzj8xWetL+RlV"
}, {
"kind": "qpxexpress#segmentPricing",
"fareId": "AdwiCcEp/0fcRu7Fuo9wIJXJ10ox6fhDiNNX+R5QWN2/",
"segmentId": "GM630mUToTypidN6"
}, {
"kind": "qpxexpress#segmentPricing",
"fareId": "AdwiCcEp/0fcRu7Fuo9wIJXJ10ox6fhDiNNX+R5QWN2/",
"segmentId": "GF93NHxfJgtZAmFR"
}],
"baseFareTotal": "USD381.40",
"saleFareTotal": "USD381.40",
"saleTaxTotal": "USD73.80",
"saleTotal": "USD455.20",
"passengers": {
"kind": "qpxexpress#passengerCounts",
"adultCount": 1
},
"tax": [{
"kind": "qpxexpress#taxInfo",
"id": "US_001",
"chargeType": "GOVERNMENT",
"code": "US",
"country": "US",
"salePrice": "USD28.60"
}, {
"kind": "qpxexpress#taxInfo",
"id": "AY_001",
"chargeType": "GOVERNMENT",
"code": "AY",
"country": "US",
"salePrice": "USD11.20"
}, {
"kind": "qpxexpress#taxInfo",
"id": "XF",
"chargeType": "GOVERNMENT",
"code": "XF",
"country": "US",
"salePrice": "USD18.00"
}, {
"kind": "qpxexpress#taxInfo",
"id": "ZP",
"chargeType": "GOVERNMENT",
"code": "ZP",
"country": "US",
"salePrice": "USD16.00"
}],
"fareCalculation": "MIA UA X/HOU UA AUS 227.91SAA00AHN UA X/HOU UA MIA 153.49LAA07AHN USD 381.40 END ZP MIA IAH AUS IAH XT 28.60US 16.00ZP 11.20AY 18.00XF MIA4.50 IAH4.50 AUS4.50 IAH4.50",
"latestTicketingTime": "2016-02-22T23:59-05:00",
"ptc": "ADT"
}]
}
]
}
},
"status": 200,
"config": {
"method": "POST",
"transformRequest": [null],
"transformResponse": [null],
"url": "https://www.googleapis.com/qpxExpress/v1/trips/search?key=AIzaSyAPCj0jDG3AlHWvHNVA6F_rtjX6WVfy8Ks",
"data": {
"request": {
"passengers": {
"adultCount": 1
},
"slice": [{
"origin": "MIA",
"destination": "AUS",
"date": "2016-02-24"
}, {
"origin": "AUS",
"destination": "MIA",
"date": "2016-02-29"
}]
}
},
"headers": {
"Accept": "application/json, text/plain, */*",
"Content-Type": "application/json;charset=utf-8"
}
},
"statusText": "OK"
}