serpapi / public-roadmap

Public Roadmap for SerpApi, LLC (https://serpapi.com)
45 stars 3 forks source link

[Google Flights API] Support Airline Codes that Include a Number #1606

Closed schaferyan closed 1 month ago

schaferyan commented 1 month ago

A user requested that we support filtering using 2-character airline codes where one of the characters is a number.

Currently, both characters in the airline code need to be letters to pass validation.

Specifically, the users tried to filter results for Wizz Air, an airline whose code appears to be W6 , W4, or W9 depending on the region.

I'm a little bit confused about how IATA codes work though. At first when I tried searching IATA for Wizz Air, W6, and W4, I didn't get any relevant results.

However, an IATA code for Wizz Air can be found here:

https://www.iata.org/en/programs/safety/audit/iosa/registry/?search=Wizz%20Air&ordering=Relevance

I also verified that Wizz Air is sometimes an option when using Google Flights directly.

Screenshot 2024-05-15 at 4 06 13 PM Screenshot 2024-05-15 at 4 01 49 PM Screenshot 2024-05-15 at 4 00 48 PM

Google Flights | Playground | Intercom

zyc9012 commented 1 month ago

We've released a fix for this. exclude_airlines and include_airlines now support specifying code containing digits.

image