A web-based flight search application built with Flask that allows users to search for flights, compare prices, view routes on a map, and check layover details. The application provides both demo flight results and live pricing through the Amadeus API.
- Flight Search: Search for flights with customizable parameters (source, destination, class, date).
- Live Pricing: Get up-to-date flight prices using the Amadeus API.
- Route Visualization: View flight routes on an interactive map.
- Layover Analysis: Check detailed information about layovers.
- Sorting Options: Sort flights by price, duration, and other criteria using custom algorithms.
- Alliance Check: Identify which airline alliance a flight belongs to.
- External Booking: Redirect to Skyscanner for booking options.
- Backend: Python, Flask
- Frontend: HTML, CSS, JavaScript
- APIs: Amadeus Flight Offers API
- Data Processing: Custom sorting algorithms (insertion sort, heap sort)
Ensure you have the following installed on your system:
- Python 3.8 or higher
- pip (Python package manager)
- Virtual environment (optional)
git clone https://github.com/CaffeinatedKong/DSA_assignment.git
cd DSA_assignmentpython -m venv venv
# On Windows
venv\Scripts\activate
# On macOS/Linux
source venv/bin/activatepip install -r requirements.txtEnsure that requirements.txt contains necessary packages like Flask and Requests:
Flask
requestsflask run
The application should be accessible at http://127.0.0.1:5000/.
Amadeus API for providing flight pricing data.
Skyscanner for booking redirections