I'm using Amadeus APIs for both Airlines and Hotels. I want to let travelers enter in a search form the cities and airports they either want to go or travel from. I see in the test APIs that Amadeus has its own code names for all cities (if I'm not wrong) in the world. I tried in the test API for Hotels. Code Name for London is LON. I entered the name LONDON and the API said it was a bad request. So if I have a search form for Hotels using Amadeus Hotel API, how can a user enter the name of a city ,eg Beijing and not PEK (which is the city code for Beijing) and still get search results? I'm cofused. I need explanation.
How Do I allow users to search for destination cities using Amadeus Hotel API?
629 Views Asked by AudioBubble At
1
There are 1 best solutions below
Related Questions in JSON
- getting undefined while iterating json
- How can I serialize a numpy array while preserving matrix dimensions?
- What is best way to check if any of the property of object is null or empty?
- How to query JSON data according to JSON array's size with Spark SQL?
- Extracting data from json_decode with lat and lng geolocation
- Convert JSON.gz to JSON in node js
- How do I get the type to convert to when deserializing from Jackson
- Escape dot in jquery validate plugin
- Are allOf and properties keywords interchangeable?
- Sort continents by amount of countries
- Is there a data format lighter than json?
- Object of class CS_REST_Wrapper_Result could not be converted to string in CAMPAIGN MONITOR
- How to read JSON data from a web server running PHP and MySQL?
- Parse Nsmutabledictionary and extract value
- Handle empty JSON values in Java
Related Questions in API
- SuiteCRM how to retrieve all account related contacts
- how do i submit a pastebin or pastee from an android app and get the url back
- BigCommerce PHP API delete Category which contains products
- Interact with chrome bookmarks outside of extensions
- purchase individual items and subscriptions in the same PayPal REST API transaction
- youtube api v3 insert comments
- Youtube api v3 duration
- Responding to an Office 365 event invite via REST
- Convert youtube video to mp3 using Quick MP3 API
- How to real-time monitor the emails?
- Laravel - Fractal - Using Find() in transformer file- is it correct or can it be done more efficiently?
- return data from a Azure API json
- Accessing Picasa Web API using PHP
- RAML multivalued form parameter
- TestFlight API and stats with as3
Related Questions in USER-INTERFACE
- Perl Command Line Interpreter crashing on exit
- Android - How to check for button click in a custom alert dialog box?
- Working towards a more advanced graphics game
- Use GUI displayed results of SQL query vs new queries?
- Efficiently design method to construct a Java GUI?
- Implementing callback function for dialog-based application
- Ui-router URL changes, nested view not loading
- Dont see anything inside my jframe
- Sliding Card Design
- Display value of Y axis inside GUI plot
- Sash becomes lost after resize
- Java Swing Drawing Rectangles
- How do I convert point to local coordinates?
- WPF Workaround to add Window control as a child of visual
- Developing multi page app like Viber interface using Qt Quick?
Related Questions in AMADEUS
- Amadeus api returning error
- Amadeus API - issue with the 'Flight Inspiration Search' API with 'origin' on LIVE mode
- This location is unknown
- Is there amadeus API endpoint for checking if service is up and running
- Flight offers pricing giving unexpected results after adding bags
- How to get the Flight Current Status and Delay using On-Demand Flight Status API
- Amadeus Self Service API making a post request
- Self Service API - There is not enough adults to accompany infants and children
- Confusion about prices on Amadeus Flight API
- Integrate Amadeus v2 Hotel API instead of v3 Hotel AP?
- INVALID_DATA_RECEIVED for Amadeus Point of Interest Search specifically for Helsinki with radius greater than 12
- Amadeus Master Pricer Travel Board - search by carrier?
- Add Amadeus airport and city search autocomplete to Rails app
- OB Fees Request with Amadeus Fare_PricePnrWithBookingClass
- Authenticating Amadeus Test Flight Api With Javascript Fetch
Related Questions in SEARCH-FORM
- How can i add an additional class the Drupal’s search form’s submit button?
- What is wrong with the Search Form codes?
- Rails search form for multiple column in a table
- Google improved search box within the search results not working
- Mezzanine search_form
- Rails Unable to convert unpermitted parameters to hash
- Why am I getting weird parameters in my search url?
- Cannot load Haystack custom form
- Simple Backbone search page - how would you do it?
- How can I use the liferay-ui:search-form tag to specify a JSP containing my search form?
- How Do I allow users to search for destination cities using Amadeus Hotel API?
- passing variables from search-form to booking-form, Ruby on Rails
- ruby on rails, redirect if hitting back button in browser
- Input image moves when clicked on mobile browser
- Are there good UI patterns for designing search forms with many fields?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You are right, our APIs use IATA codes (airport and/or city codes) which is the standard way in the travel industry, this helps to have a standardized way to identify cities and airports all over the world.
It is obviously not the way you want your users to enter it. For this, we have an API: Airport & City Search. This API is an auto-complete API, allowing to retrieve the IATA code (and other information) from the name. For example, if you call the API with "LONDON" you will get information about the city and/or the airports of London.
We have different guides (depending of your programming language/framework) on how to implement this API and enable the auto-complete feature (showing the different cities/airports when the user starts typing):