Reproducing the Analysis¶
Follow these steps to reproduce all results from the archived dataset.
1. Clone & install¶
git clone https://github.com/firmanhadi21/traffic-analyses.git
cd traffic-analyses
python3 -m venv venv
source venv/bin/activate # Windows: venv\Scripts\activate
pip install -e ".[all]"
2. Download data from Zenodo¶
Download the dataset from
doi:10.5281/zenodo.18650759 and
unzip. Place the three traffic_*_output/ directories in the repository root:
traffic-analyses/
├── traffic_smg_output/ ← from Zenodo
├── traffic_bdg_output/ ← from Zenodo
└── traffic_jkt_output/ ← from Zenodo
3. Verify¶
4. Run the pipeline¶
traffic-pipeline geostatistics # Spatial statistics & hot-spot maps
traffic-pipeline bottleneck # Road-capacity bottleneck analysis
traffic-pipeline poi # POI-congestion density analysis
traffic-pipeline synthesis # Temporal vs spatial comparison
Results are written to figures/ (PNG) and analysis_results/ (CSV).
Expected runtime¶
| Stage | Approximate time |
|---|---|
geostatistics |
2–5 minutes |
bottleneck |
10–30 minutes (downloads OSMnx networks) |
poi |
5–15 minutes (downloads POI data) |
synthesis |
< 1 minute |