gpt4 book ai didi

google-api - 为什么Google QPX Express API不返回所有航空公司的结果?

转载 作者:行者123 更新时间:2023-12-04 13:19:09 25 4
gpt4 key购买 nike

我启用了对Google QPX Express API的访问权限,以对达美机票和票价舱位的价格进行一些分析。但回应似乎只包括来自少数航空公司的航类。

例如,以下请求

{
"request": {
"passengers": {
"adultCount": 1
},
"slice": [
{
"origin": "JFK",
"destination": "SFO",
"date": "2015-02-15",
"maxStops": 0
}
],
"solutions": 500
}
}

仅返回AS(阿拉斯加航空),US(美国航空),VX(维珍航空),B6(JetBlue)和UA(联合航空)的航类。

如果我添加 "permittedCarriers": [DL],那么我将得到一个空响应。同样,如果我忽略 permittedCarriers并寻找Delta集线器之间的航类(例如 "origin": "ATL", "destination": "MSP"),则会得到一个空响应。

The documentation建议使用QPX Express获得大多数机票。我的要求有问题吗?为什么我看不到Delta的任何结果?

最佳答案

我收到了Google QPX Express帮助团队的答复,内容是有关Delta的数据丢失。回应是

Delta's data, as well as American Airline's data, is not included in QPX Express search results as a default. Access to their data requires approval by those carriers.



在告知他我使用数据的计划是出于研究目的之后,他回答说,

American and Delta restrict access to their pricing and availability to companies which they approve, which are primarily organizations driving the sale of airline tickets. Unfortunately, requests for access are only being reviewed for companies that plan to use the API for commercial purposes.

关于google-api - 为什么Google QPX Express API不返回所有航空公司的结果?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28334994/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com