Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

9 Commits

Folders and files

Repository files navigation

✈️ Travel Planner — Flight & Hotel Booking App (Amadeus API + Streamlit + Gemini)

A modern and interactive travel booking dashboard built using Streamlit, the Amadeus API, and powered by Google Gemini.
Search, compare, and book flights and hotels seamlessly — all within a single, intuitive interface.


🌍 Overview

This app provides a unified platform to:

  • Search for flights between two destinations.
  • Explore hotels based on city, rating, and stay duration.
  • Preview offers directly from Amadeus’ sandbox API.
  • Simulate bookings for both flights and hotels using dummy traveler and payment information.
  • Powered by Google Gemini to create a travel itinerary

Perfect for prototyping travel tech apps, dashboards, or Amadeus API integrations.


🖼️ UI Preview

image image

⚙️ Features

✅ Flight Search

  • Enter origin, destination, and departure date.
  • Retrieve live flight offers via the Amadeus API.
  • Display key details: airline, route, time, and price.

✅ Hotel Search

  • Filter by city, check-in/out dates, and star rating.
  • Browse hotel offers with prices and IDs.
  • Uses amadeus.reference_data.locations.hotels.by_city and hotel_offers_search endpoints.

✅ Booking Simulation

  • Confirm bookings using mock traveler and payment data.
  • Logs responses and confirmations to the console.
  • Safe to use in sandbox (no real transactions).

✅ Streamlit Sidebar Controls

  • Quick, interactive UI for input and filtering.
  • Select filters (e.g. hotel stars ⭐⭐⭐⭐).
  • Dynamic response rendering.

🧩 Tech Stack

Layer Technology
Frontend/UI Streamlit
Backend Logic Python
API Integration Amadeus SDK
Environment Management os (for API keys)
Data Handling Native Python + Streamlit widgets

🚀 Getting Started

1️⃣ Clone the repository

git clone https://github.com/yourusername/travel-planner.git
cd travel-planner

2️⃣ Install dependencies

pip install -r requirements.txt

3️⃣ Configure your Amadeus and Google AI Studio credentials

Open the project files and replace each placeholder labeled "INSERT YOUR OWN" with your personal API keys from the Amadeus for Developers Portal and Google AI Studio.

4️⃣ Run the app

Launch the application by running Streamlit and specifying the path to the travelagent.py file:

streamlit run "travelagent.py"

💡Note: Make sure you’re executing this command from a directory where Streamlit is installed and your virtual environment (if any) is active.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages