Reputation: 31
I am using amadeus flight search API, built the endpoint with PHP and tested on postman, working perfectly now i am worried about how my users will use the frontend to search for flight, do they have to know the city codes to be able to search for flights? I want a situation whereby they just entered the names of the cities in the form from my frontend and they get to search for flights not entering city codes
Upvotes: 0
Views: 826
Reputation:
You can also use the City Search to get nearest Airport to a destination (may be a city with no airport). Use the include parameter to get AIRPORTS in the result.
Upvotes: 0
Reputation: 31
Thanks everyone for the contribution, i am really grateful, though i discovered getting list of JSON data of IATA codes, cities, and countries in my frontend application and then using javascript filter to search through responding to the onChange event handler from the user's form will solve the problem, once again i appreciate everyone contributions, i am really grateful
Upvotes: 1
Reputation: 159
All the airport and city codes are based on IATA standard. Amadeus provides also another API to get this information : Airport and city search API. you can integrate this so that your user can type a keyword for your application to get the corresponding codes.
Upvotes: 1