amadeus4dev / amadeus-code-examples

Self-contained examples for Amadeus REST APIs
MIT License
83 stars 39 forks source link

Possible bug in Flight Offer Search API #20

Closed spyglass24 closed 2 years ago

spyglass24 commented 2 years ago

Hi, I think there is an issue in flight offer search API. I'm selecting nonStop as true, however result is showing both direct and stopover flights. Here is screenshot.

image

tsolakoua commented 2 years ago

We tested the API on our side and all flights are direct.

However, there is one direct flight with arrival in ONT as you pointed out. Since the API lets you search flights between two cities, more than one airport can be returned.

For example, if you search for a flight from NCE to PAR: PAR (city code of Paris) has several airports so they will appear in the response. There are cases such as your API call, where the API can return airports from other regions if they are not too far away from each other.