我目前正在测试廉价的Finder Max REST API。我知道有一些版本的BFM专门实现了替代日期和替代机场,但我想知道是否有一种方法可以将替代日期和替代机场组合到单个请求中。我试过像这样的东西
{
"OTA_AirLowFareSearchRQ": {
"AvailableFlightsOnly": true,
"POS": {
"Source": [{
"PseudoCityCode":"F9CE",
"RequestorID": {
"Type": "1",
"ID": "1",
"CompanyName": {
"Code": "TN",
"CodeContext": "Context"
}
}
}]
},
"OriginDestinationInformation": [{
"DepartureDateTime": "2018-04-07T00:00:00",
"OriginLocation": {
"LocationCode": "DTW"
},
"DestinationLocation": {
"LocationCode": "ORD"
}
}],
"TravelerInfoSummary": {
"AirTravelerAvail": [{
"PassengerTypeQuantity": [{
"Code": "ADT",
"Quantity": 1
}]
}],
"PriceRequestInformation": {
"CurrencyCode": "USD"
}
},
"TPA_Extensions": {
"IntelliSellTransaction": {
"RequestType": {
"Name": "AD1"
}
}
}
}
}但这只返回DTW -> ORD的备用日期,即原始始发地和目的地机场。
我还试图弄清楚如何使用替代日期BFM API获得更多结果。运行查询
{
"OTA_AirLowFareSearchRQ": {
"AvailableFlightsOnly": true,
"POS": {
"Source": [{
"PseudoCityCode":"F9CE",
"RequestorID": {
"Type": "1",
"ID": "1",
"CompanyName": {
"Code": "TN",
"CodeContext": "Context"
}
}
}]
},
"OriginDestinationInformation": [{
"DepartureDateTime": "2018-04-07T00:00:00",
"OriginLocation": {
"LocationCode": "DTW"
},
"DestinationLocation": {
"LocationCode": "ORD"
}
}],
"TravelPreferences": {
"TPA_Extensions": {
"NumTrips": {
"Number": 100
}
}
},
"TravelerInfoSummary": {
"AirTravelerAvail": [{
"PassengerTypeQuantity": [{
"Code": "ADT",
"Quantity": 1
}]
}],
"PriceRequestInformation": {
"CurrencyCode": "USD"
}
},
"TPA_Extensions": {
"IntelliSellTransaction": {
"RequestType": {
"Name": "AD1"
}
}
}
}
}但它每天只返回一条行程。
有人能帮我解决这些问题吗?提前感谢!
发布于 2018-02-02 21:14:50
在执行BFM时,您可以使用不同的限定符来帮助搜索备用机场,例如AlternateAirportCities或SisterDestinationLocation,但这些限定符似乎不支持BFM备用日期。
相反,您可能使用的不是机场代码,而是它所在的实际城市。在您的示例中,您从底特律(DTW)到芝加哥(ORD),但是如果您更改目的地,例如,到芝加哥城市(CHI),您可以得到芝加哥OHARE (ORD)以及芝加哥中途(MDW)。
下面是几个例子:
H19代替EZE,AEP H210代替DCA,IAD H212F213
https://stackoverflow.com/questions/48556215
复制相似问题