为什么Google QPX Express API不会为所有航空公司返回结果? [英] Why isn't the Google QPX Express API returning results for all airlines?

查看:93
本文介绍了为什么Google QPX Express API不会为所有航空公司返回结果?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我启用了访问Google QPX Express API的功能,以对Delta票和票价类别的价格进行分析。但是,答复似乎只包括来自有限航空公司的航班。

例如,下面的请求

  {
request:{
passengers:{
adultCount:1
} ,
slice:[
{
origin:JFK,
destination:SFO,
date: 02-15,
maxStops:0
}
],
解决方案:500
}
}

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



如果我添加permittedCarriers:[DL] 空的回应。同样,如果我省略 allowedCarriers 并查找Delta集线器之间的航班(例如,origin:ATL,目的地:MSP)。



文档建议QPX Express应该提供大多数机票。我的要求有问题吗?为什么我没有看到Delta的任何结果?

解决方案

我收到了Google QPX Express帮助团队关于Delta缺失数据的回复。答案是:


Delta的数据以及美国航空公司的数据并未包含在
QPX Express搜索结果中作为默认。访问他们的数据
需要这些运营商的批准。


在通知他我使用这些数据的计划用于研究purpsoses,他回应说,美元和达美航空限制他们的定价和可用性
获得他们批准的公司,这主要是机构推动出售机票
。不幸的是,只有在计划将API
用于商业用途的公司时,才会审核对
访问的请求。



I enabled access to the Google QPX Express API to do some analytics on the prices of Delta's tickets and Fare Classes. But the response seems to only include flights from a limited set of airlines.

For example, the following request

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

only returns flights for AS (Alaska Airlines), US (US Air), VX (Virgin America), B6 (JetBlue), and UA (United Airlines).

If I add "permittedCarriers": [DL], then I get an empty response. Likewise, I get an empty response if I leave out permittedCarriers and look for flights between Delta hubs (e.g., "origin": "ATL", "destination": "MSP").

The documentation suggests that QPX Express is supposed to have most airline tickets available. Is there something wrong with my request? Why am I not seeing any results for Delta?

解决方案

I received a response from Google's QPX Express help team about missing data for Delta. The response was that

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.

After informing him that my plans to use the data were for research purpsoses, he responded,

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 QPX Express API不会为所有航空公司返回结果?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆