The FlightDelayPredictor API is a Python Flask-based server that leverages the Amadeus Flight Delay Prediction API to predict flight delays based on historical data. This API helps travelers make informed decisions by estimating the probability of delays for a given flight.
Getting Started:
1.Clone this repository:
git clone https://github.com/your-username/FlightDelayPredictor-API.git
cd FlightDelayPredictor-API
3.Set up your Amadeus API Key:
Replace “YOUR_AMADEUS_API_KEY” in the app.py file with your actual Amadeus API key.
4.Run the Flask app:
python app.py
The app will be accessible at http://127.0.0.1:5000/flight_delay_prediction?url=YOUR_FLIGHT_URL.
API Usage
Endpoint: /flight_delay_prediction
Method: GET
Parameters:
url (string): The URL of the flight for which you want to predict delays.