Interactive passenger flow visualization for Dublin Airport Terminal 1
This is a proof-of-concept prototype demonstrating passenger flow visualization at Dublin Airport using interactive heatmaps.
Current Status: Functional demo with simulated Terminal 1 passenger data
What It Does:
- Displays real-time passenger density heatmap
- Shows color-coded flow (Blue = low, Yellow = medium, Red = high)
- Interactive controls for adjusting visualization
- Live statistics dashboard
What It's NOT:
- Not using real flight data (uses simulated data)
- Not production-ready (proof of concept only)
Before running, ensure you have:
- Python 3.10+ installed
- PostgreSQL 14+ installed and running
- PostGIS extension enabled
- GDAL library installed (for GeoDjango)
git clone https://github.com/yourusername/airflow.git
cd airflowOr download ZIP and extract.
Windows:
python -m venv venv
venv\Scripts\activatemacOS/Linux:
python3 -m venv venv
source venv/bin/activatepip install Django==4.2.7
pip install psycopg2-binary==2.9.9Windows users may also need:
pip install djangorestframeworkCreate Database:
-- Open psql or pgAdmin
CREATE DATABASE airflow_db;
-- Connect to database
\c airflow_db
-- Enable PostGIS extension
CREATE EXTENSION postgis;Update Database Settings:
Edit airflow_project/settings.py:
DATABASES = {
'default': {
'ENGINE': 'django.contrib.gis.db.backends.postgis',
'NAME': 'airflow_db',
'USER': 'your_postgres_username', # Change this
'PASSWORD': 'your_postgres_password', # Change this
'HOST': 'localhost',
'PORT': '5432',
}
}Windows Users Only - Add GDAL Paths:
Add to settings.py (adjust paths to match your GDAL installation):
import os
GDAL_LIBRARY_PATH = r'C:\Program Files\PostgreSQL\14\bin\gdal304.dll'
GEOS_LIBRARY_PATH = r'C:\Program Files\PostgreSQL\14\bin\geos_c.dll'python manage.py makemigrations
python manage.py migrateExpected Output:
Running migrations:
Applying core.0001_initial... OK
Applying core.0002_passengerheatmapdata... OK
python manage.py load_mock_datapython manage.py runserverExpected Output:
Starting development server at http://127.0.0.1:8000/
Quit the server with CTRL-BREAK.
Navigate to: http://localhost:8000
You should see:
- Professional navbar with AirFlow branding
- Left control panel with statistics
- Interactive map centered on Dublin Airport
- Colorful heatmap overlay showing passenger density