Skip to content

Instantly share code, notes, and snippets.

@carchrae
Last active September 17, 2018 18:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save carchrae/53cebcbd17271017b7d0992c3ee7341d to your computer and use it in GitHub Desktop.
Save carchrae/53cebcbd17271017b7d0992c3ee7341d to your computer and use it in GitHub Desktop.

Coding Challenge - The Cheapest Stopover

You're a jetsetting high flyer who is nearly always on the move. You often end up sleeping in airports due to poor flight connections. Your task is to build an application to find the cheapest hotel near an airport on a particular date. This will allow you to spend more time in a comfy bed and less time on the airport floor!

Specific Goal

Build a simple server that, given an airport code (eg, YVR) and a date, will return the three cheapest hotel rooms. (in case one is booked up or doesn't like the look of you). Make sure your output only contains the required information, the name of the hotel, address, phone number, and the rate for a room.

Please provide instructions on how to build and execute your project.

Tools

Use the amadeus sandbox api: https://sandbox.amadeus.com/travel-innovation-sandbox/apis/get/hotels/search-airport

Evaluation

The goal is to see how you design the system. You can use whatever tools you feel are best for the job. If you want to build a user interface (bonus) that is great, but it is also fine if your code is simply an endpoint that returns JSON, eg http://localhost:8000?airport=yvr&date=2019-10-30

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment