# TrafficPulse Egypt π¦
TrafficPulse Egypt is a real-time traffic and incidents monitoring platform designed to provide live visibility into road congestion and incidents across Cairo.
## π Problem Statement
Traffic incidents and congestion occur continuously across Cairo's road network. Decision-makers often rely on incomplete or outdated information, making incident response and traffic management difficult.
## π‘ Solution
TrafficPulse Egypt collects live traffic and incident data, processes it using a streaming data pipeline, and delivers actionable insights through interactive dashboards.
---
## π Tech Stack
- Python
- Apache Kafka (KRaft Mode)
- Spark Structured Streaming
- AWS S3
- PostgreSQL + PostGIS
- Grafana
- Docker
---
## Architecture
```text
TomTom API
β
Python Producer
β
Kafka
β
Spark Structured Streaming
β
Bronze β Silver β Gold
β
PostgreSQL + PostGIS
β
Grafana Dashboard
```
---
## Features
- Real-Time Traffic Monitoring
- Incident Detection
- Sliding Window Aggregations
- Spatial Analytics with PostGIS
- Interactive Dashboards
- Fault-Tolerant Streaming Pipeline
---
## Project Structure
```text
TrafficPulse-Egypt/
β
βββ architecture/
βββ docs/
βββ grafana/
βββ postgres/
βββ producer/
βββ schemas/
βββ spark/
βββ README.md
βββ docker-compose.yml
βββ Dockerfile
```
---
## Team
- Ahmed Salah
- Mohamed Heikal
- Omar Ayyad
- Mostafa Azab