# hmanoj1727/large-scale-traffic-data-analytics-for-intelligent-traffic-prediction architecture

> Architecture diagram of the GitHub repository hmanoj1727/large-scale-traffic-data-analytics-for-intelligent-traffic-prediction, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-05). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/hmanoj1727/large-scale-traffic-data-analytics-for-intelligent-traffic-prediction
- Repository: https://github.com/hmanoj1727/large-scale-traffic-data-analytics-for-intelligent-traffic-prediction

## Overview

This is a Streamlit traffic analytics dashboard combining historical-data machine learning with separate live-traffic features. The main user journey starts at the dashboard and branches into congestion prediction, exploration and model insights, GPS-based traffic, or location search; the live branches query TomTom and display traffic conditions. The repository also contains data collection, preprocessing, training, and evaluation modules. Their internal pipeline ordering is not shown as a verified chain here: sampled excerpts show their responsibilities, but not cross-module calls. The dashboard excerpt is partial, so individual page routing is represented only where documented.

Main entry points: [`app.py`](https://github.com/hmanoj1727/large-scale-traffic-data-analytics-for-intelligent-traffic-prediction/blob/Main/app.py) (Streamlit Dashboard), [`gps_traffic.py`](https://github.com/hmanoj1727/large-scale-traffic-data-analytics-for-intelligent-traffic-prediction/blob/Main/gps_traffic.py) (GPS Traffic), [`location_traffic.py`](https://github.com/hmanoj1727/large-scale-traffic-data-analytics-for-intelligent-traffic-prediction/blob/Main/location_traffic.py) (Location Search), [`Datasets/traffic_data_raw.csv`](https://github.com/hmanoj1727/large-scale-traffic-data-analytics-for-intelligent-traffic-prediction/blob/Main/Datasets/traffic_data_raw.csv) (Traffic Data)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_dashboard["Dashboard"]
  node_app["Streamlit Dashboard<br/>[app.py]"]
  node_dashutils["Dashboard Utilities<br/>[dashboard_utils.py]"]
  node_home["Home Overview<br/>[app.py]"]
  node_prediction["Congestion Prediction<br/>[app.py]"]
  node_explorer["Data Explorer<br/>[app.py]"]
  node_performance["Model Performance<br/>[app.py]"]
  node_insights["Traffic Insights<br/>[app.py]"]
end

subgraph group_live["Live Traffic"]
  node_gps["GPS Traffic<br/>[gps_traffic.py]"]
  node_geolocation["Browser Geolocation"]
  node_location["Location Search"]
  node_tomtom["TomTom APIs"]
  node_results["Traffic Results<br/>[gps_traffic.py]"]
  node_locresults["Location Results"]
end

subgraph group_ml["Prediction Models"]
  node_training["Model Training<br/>[model_training.py]"]
  node_evaluation["Model Evaluation"]
  node_artifacts[("Trained Models")]
end

subgraph group_data["Data Analytics"]
  node_collection["Data Collection<br/>[data_collection.py]"]
  node_rawdata[("Traffic Data")]
  node_preprocess["Data Preprocessing"]
  node_eda["Exploratory Analysis"]
end

node_user(("User"))

node_user -->|"opens"| node_app
node_app -->|"uses helpers"| node_dashutils
node_app -->|"routes to"| node_gps
node_app -->|"routes to"| node_location
node_app -->|"presents"| node_home
node_app -->|"offers"| node_prediction
node_app -->|"offers"| node_explorer
node_app -->|"offers"| node_performance
node_app -->|"offers"| node_insights
node_prediction -->|"builds features"| node_dashutils
node_prediction -.->|"loads models"| node_artifacts
node_gps -->|"requests coordinates"| node_geolocation
node_gps -->|"requests traffic"| node_tomtom
node_gps -->|"displays"| node_results
node_location -->|"searches and fetches"| node_tomtom
node_location -->|"displays"| node_locresults
node_collection -.->|"produces data"| node_rawdata
node_rawdata -.->|"provides input"| node_preprocess
node_preprocess -.->|"prepares data"| node_training
node_training -.->|"saves models"| node_artifacts
node_artifacts -.->|"evaluated by"| node_evaluation
node_evaluation -.->|"summarized in"| node_performance
node_rawdata -.->|"analyzed by"| node_eda
node_eda -.->|"informs"| node_insights

click node_app "https://github.com/hmanoj1727/large-scale-traffic-data-analytics-for-intelligent-traffic-prediction/blob/Main/app.py"
click node_dashutils "https://github.com/hmanoj1727/large-scale-traffic-data-analytics-for-intelligent-traffic-prediction/blob/Main/dashboard_utils.py"
click node_home "https://github.com/hmanoj1727/large-scale-traffic-data-analytics-for-intelligent-traffic-prediction/blob/Main/app.py"
click node_prediction "https://github.com/hmanoj1727/large-scale-traffic-data-analytics-for-intelligent-traffic-prediction/blob/Main/app.py"
click node_explorer "https://github.com/hmanoj1727/large-scale-traffic-data-analytics-for-intelligent-traffic-prediction/blob/Main/app.py"
click node_performance "https://github.com/hmanoj1727/large-scale-traffic-data-analytics-for-intelligent-traffic-prediction/blob/Main/app.py"
click node_insights "https://github.com/hmanoj1727/large-scale-traffic-data-analytics-for-intelligent-traffic-prediction/blob/Main/app.py"
click node_gps "https://github.com/hmanoj1727/large-scale-traffic-data-analytics-for-intelligent-traffic-prediction/blob/Main/gps_traffic.py"
click node_location "https://github.com/hmanoj1727/large-scale-traffic-data-analytics-for-intelligent-traffic-prediction/blob/Main/location_traffic.py"
click node_results "https://github.com/hmanoj1727/large-scale-traffic-data-analytics-for-intelligent-traffic-prediction/blob/Main/gps_traffic.py"
click node_locresults "https://github.com/hmanoj1727/large-scale-traffic-data-analytics-for-intelligent-traffic-prediction/blob/Main/location_traffic.py"
click node_collection "https://github.com/hmanoj1727/large-scale-traffic-data-analytics-for-intelligent-traffic-prediction/blob/Main/src/data_collection.py"
click node_rawdata "https://github.com/hmanoj1727/large-scale-traffic-data-analytics-for-intelligent-traffic-prediction/blob/Main/Datasets/traffic_data_raw.csv"
click node_preprocess "https://github.com/hmanoj1727/large-scale-traffic-data-analytics-for-intelligent-traffic-prediction/blob/Main/src/data_preprocessing.py"
click node_eda "https://github.com/hmanoj1727/large-scale-traffic-data-analytics-for-intelligent-traffic-prediction/blob/Main/src/exploratory_analysis.py"
click node_training "https://github.com/hmanoj1727/large-scale-traffic-data-analytics-for-intelligent-traffic-prediction/blob/Main/src/model_training.py"
click node_evaluation "https://github.com/hmanoj1727/large-scale-traffic-data-analytics-for-intelligent-traffic-prediction/blob/Main/src/model_evaluation.py"
click node_artifacts "https://github.com/hmanoj1727/large-scale-traffic-data-analytics-for-intelligent-traffic-prediction/tree/Main/models"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_app,node_dashutils,node_home,node_prediction,node_explorer,node_performance,node_insights,node_user toneBlue
class node_gps,node_geolocation,node_location,node_tomtom,node_results,node_locresults toneAmber
class node_training,node_evaluation,node_artifacts toneMint
class node_collection,node_rawdata,node_preprocess,node_eda toneRose
```

## Components

### Dashboard

- [Streamlit Dashboard](https://github.com/hmanoj1727/large-scale-traffic-data-analytics-for-intelligent-traffic-prediction/blob/Main/app.py): `app.py`
- [Dashboard Utilities](https://github.com/hmanoj1727/large-scale-traffic-data-analytics-for-intelligent-traffic-prediction/blob/Main/dashboard_utils.py): `dashboard_utils.py`
- [Home Overview](https://github.com/hmanoj1727/large-scale-traffic-data-analytics-for-intelligent-traffic-prediction/blob/Main/app.py): `app.py`
- [Congestion Prediction](https://github.com/hmanoj1727/large-scale-traffic-data-analytics-for-intelligent-traffic-prediction/blob/Main/app.py): `app.py`
- [Data Explorer](https://github.com/hmanoj1727/large-scale-traffic-data-analytics-for-intelligent-traffic-prediction/blob/Main/app.py): `app.py`
- [Model Performance](https://github.com/hmanoj1727/large-scale-traffic-data-analytics-for-intelligent-traffic-prediction/blob/Main/app.py): `app.py`
- [Traffic Insights](https://github.com/hmanoj1727/large-scale-traffic-data-analytics-for-intelligent-traffic-prediction/blob/Main/app.py): `app.py`

### Live Traffic

- [GPS Traffic](https://github.com/hmanoj1727/large-scale-traffic-data-analytics-for-intelligent-traffic-prediction/blob/Main/gps_traffic.py): `gps_traffic.py`
- **Browser Geolocation**
- [Location Search](https://github.com/hmanoj1727/large-scale-traffic-data-analytics-for-intelligent-traffic-prediction/blob/Main/location_traffic.py): `location_traffic.py`
- **TomTom APIs**
- [Traffic Results](https://github.com/hmanoj1727/large-scale-traffic-data-analytics-for-intelligent-traffic-prediction/blob/Main/gps_traffic.py): `gps_traffic.py`
- [Location Results](https://github.com/hmanoj1727/large-scale-traffic-data-analytics-for-intelligent-traffic-prediction/blob/Main/location_traffic.py): `location_traffic.py`

### Prediction Models

- [Model Training](https://github.com/hmanoj1727/large-scale-traffic-data-analytics-for-intelligent-traffic-prediction/blob/Main/src/model_training.py): `src/model_training.py`
- [Model Evaluation](https://github.com/hmanoj1727/large-scale-traffic-data-analytics-for-intelligent-traffic-prediction/blob/Main/src/model_evaluation.py): `src/model_evaluation.py`
- [Trained Models](https://github.com/hmanoj1727/large-scale-traffic-data-analytics-for-intelligent-traffic-prediction/tree/Main/models): `models`

### Data Analytics

- [Data Collection](https://github.com/hmanoj1727/large-scale-traffic-data-analytics-for-intelligent-traffic-prediction/blob/Main/src/data_collection.py): `src/data_collection.py`
- [Traffic Data](https://github.com/hmanoj1727/large-scale-traffic-data-analytics-for-intelligent-traffic-prediction/blob/Main/Datasets/traffic_data_raw.csv): `Datasets/traffic_data_raw.csv`
- [Data Preprocessing](https://github.com/hmanoj1727/large-scale-traffic-data-analytics-for-intelligent-traffic-prediction/blob/Main/src/data_preprocessing.py): `src/data_preprocessing.py`
- [Exploratory Analysis](https://github.com/hmanoj1727/large-scale-traffic-data-analytics-for-intelligent-traffic-prediction/blob/Main/src/exploratory_analysis.py): `src/exploratory_analysis.py`

### Other components

- **User**

## Connections

- User → Streamlit Dashboard: opens (evidence: `README.md`)
- Streamlit Dashboard → Dashboard Utilities: uses helpers (evidence: `app.py`)
- Streamlit Dashboard → GPS Traffic: routes to (evidence: `README.md`)
- Streamlit Dashboard → Location Search: routes to (evidence: `README.md`)
- Streamlit Dashboard → Home Overview: presents (evidence: `README.md`)
- Streamlit Dashboard → Congestion Prediction: offers (evidence: `README.md`)
- Streamlit Dashboard → Data Explorer: offers (evidence: `README.md`)
- Streamlit Dashboard → Model Performance: offers (evidence: `README.md`)
- Streamlit Dashboard → Traffic Insights: offers (evidence: `README.md`)
- Congestion Prediction → Dashboard Utilities: builds features (evidence: `dashboard_utils.py`)
- Congestion Prediction → Trained Models: loads models
- GPS Traffic → Browser Geolocation: requests coordinates (evidence: `gps_traffic.py`)
- GPS Traffic → TomTom APIs: requests traffic (evidence: `gps_traffic.py`)
- GPS Traffic → Traffic Results: displays (evidence: `gps_traffic.py`)
- Location Search → TomTom APIs: searches and fetches (evidence: `location_traffic.py`)
- Location Search → Location Results: displays (evidence: `location_traffic.py`)
- Data Collection → Traffic Data: produces data
- Traffic Data → Data Preprocessing: provides input
- Data Preprocessing → Model Training: prepares data
- Model Training → Trained Models: saves models
- Trained Models → Model Evaluation: evaluated by
- Model Evaluation → Model Performance: summarized in
- Traffic Data → Exploratory Analysis: analyzed by
- Exploratory Analysis → Traffic Insights: informs
