# sivram04/port-authority-ny-nj-bus-terminal-main-using-sql-and-python- architecture

> Architecture diagram of the GitHub repository sivram04/port-authority-ny-nj-bus-terminal-main-using-sql-and-python-, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-15). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/sivram04/port-authority-ny-nj-bus-terminal-main-using-sql-and-python-
- Repository: https://github.com/sivram04/port-authority-ny-nj-bus-terminal-main-using-sql-and-python-

## Overview

This repository presents a passenger and traffic forecasting project: historical traffic, passenger, and weather data are cleaned and aggregated, analyzed with forecasting and classification/clustering methods, and presented in a Power BI dashboard for operational planning. The tree contains only the dashboard file and empty placeholder directories; the README documents the other capabilities but their implementation files are absent. Accordingly, those components use existing directory paths, and the documented workflow edges cite the README rather than implying inspected code.

Main entry points: [`Datasets`](https://github.com/sivram04/port-authority-ny-nj-bus-terminal-main-using-sql-and-python-/tree/main/Datasets) (Prepared datasets), [`Dashboard/dashboard/Port authority.pbix`](https://github.com/sivram04/port-authority-ny-nj-bus-terminal-main-using-sql-and-python-/blob/main/Dashboard/dashboard/Port%20authority.pbix) (Power BI dashboard), [`SRC`](https://github.com/sivram04/port-authority-ny-nj-bus-terminal-main-using-sql-and-python-/tree/main/SRC) (SQL and Python prep), [`Reports`](https://github.com/sivram04/port-authority-ny-nj-bus-terminal-main-using-sql-and-python-/tree/main/Reports) (Reports and presentations)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_data["Data preparation"]
  node_data_prep["SQL and Python prep"]
  node_prepared_data[("Prepared datasets")]
end

subgraph group_analytics["Traffic analytics"]
  node_terminal_forecast["Terminal forecasts"]
  node_carrier_forecast["Carrier forecasts"]
  node_high_traffic["High-traffic classification"]
  node_traffic_clusters["Traffic clustering"]
  node_operational_analysis["Peak and recovery analysis"]
end

subgraph group_delivery["Planning outputs"]
  node_dashboard["Power BI dashboard"]
  node_reports["Reports and presentations"]
end

node_traffic_db[("TBT traffic DB")]
node_passenger_db[("Unit 571 DB")]
node_weather_db[("Weather DB")]
node_planners(("Port Authority planners"))

node_traffic_db -->|"provides traffic data"| node_data_prep
node_passenger_db -->|"provides passenger data"| node_data_prep
node_weather_db -->|"provides weather data"| node_data_prep
node_data_prep -->|"cleans and aggregates"| node_prepared_data
node_prepared_data -->|"supports forecasting"| node_terminal_forecast
node_prepared_data -->|"supports forecasting"| node_carrier_forecast
node_prepared_data -->|"supports classification"| node_high_traffic
node_prepared_data -->|"supports clustering"| node_traffic_clusters
node_terminal_forecast -->|"visualizes forecasts"| node_dashboard
node_carrier_forecast -->|"visualizes demand"| node_dashboard
node_high_traffic -->|"visualizes traffic patterns"| node_dashboard
node_traffic_clusters -->|"supports gate allocation"| node_dashboard
node_operational_analysis -->|"shows recovery comparisons"| node_dashboard
node_prepared_data -->|"supports comparison"| node_operational_analysis
node_dashboard -->|"informs operations"| node_planners
node_terminal_forecast -->|"provides model outputs"| node_reports

click node_data_prep "https://github.com/sivram04/port-authority-ny-nj-bus-terminal-main-using-sql-and-python-/tree/main/SRC"
click node_prepared_data "https://github.com/sivram04/port-authority-ny-nj-bus-terminal-main-using-sql-and-python-/tree/main/Datasets"
click node_terminal_forecast "https://github.com/sivram04/port-authority-ny-nj-bus-terminal-main-using-sql-and-python-/tree/main/SRC"
click node_carrier_forecast "https://github.com/sivram04/port-authority-ny-nj-bus-terminal-main-using-sql-and-python-/tree/main/SRC"
click node_high_traffic "https://github.com/sivram04/port-authority-ny-nj-bus-terminal-main-using-sql-and-python-/tree/main/SRC"
click node_traffic_clusters "https://github.com/sivram04/port-authority-ny-nj-bus-terminal-main-using-sql-and-python-/tree/main/SRC"
click node_operational_analysis "https://github.com/sivram04/port-authority-ny-nj-bus-terminal-main-using-sql-and-python-/tree/main/SRC"
click node_dashboard "https://github.com/sivram04/port-authority-ny-nj-bus-terminal-main-using-sql-and-python-/blob/main/Dashboard/dashboard/Port%20authority.pbix"
click node_reports "https://github.com/sivram04/port-authority-ny-nj-bus-terminal-main-using-sql-and-python-/tree/main/Reports"

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_data_prep,node_prepared_data toneBlue
class node_terminal_forecast,node_carrier_forecast,node_high_traffic,node_traffic_clusters,node_operational_analysis,node_traffic_db,node_passenger_db,node_weather_db toneAmber
class node_dashboard,node_reports toneMint
class node_planners toneIndigo
```

## Components

### Data preparation

- [SQL and Python prep](https://github.com/sivram04/port-authority-ny-nj-bus-terminal-main-using-sql-and-python-/tree/main/SRC): `SRC`
- [Prepared datasets](https://github.com/sivram04/port-authority-ny-nj-bus-terminal-main-using-sql-and-python-/tree/main/Datasets): `Datasets`

### Traffic analytics

- [Terminal forecasts](https://github.com/sivram04/port-authority-ny-nj-bus-terminal-main-using-sql-and-python-/tree/main/SRC): `SRC`
- [Carrier forecasts](https://github.com/sivram04/port-authority-ny-nj-bus-terminal-main-using-sql-and-python-/tree/main/SRC): `SRC`
- [High-traffic classification](https://github.com/sivram04/port-authority-ny-nj-bus-terminal-main-using-sql-and-python-/tree/main/SRC): `SRC`
- [Traffic clustering](https://github.com/sivram04/port-authority-ny-nj-bus-terminal-main-using-sql-and-python-/tree/main/SRC): `SRC`
- [Peak and recovery analysis](https://github.com/sivram04/port-authority-ny-nj-bus-terminal-main-using-sql-and-python-/tree/main/SRC): `SRC`

### Planning outputs

- [Power BI dashboard](https://github.com/sivram04/port-authority-ny-nj-bus-terminal-main-using-sql-and-python-/blob/main/Dashboard/dashboard/Port%20authority.pbix): `Dashboard/dashboard/Port authority.pbix`
- [Reports and presentations](https://github.com/sivram04/port-authority-ny-nj-bus-terminal-main-using-sql-and-python-/tree/main/Reports): `Reports`

### Other components

- **TBT traffic DB**
- **Unit 571 DB**
- **Weather DB**
- **Port Authority planners**

## Connections

- TBT traffic DB → SQL and Python prep: provides traffic data (evidence: `README.md`)
- Unit 571 DB → SQL and Python prep: provides passenger data (evidence: `README.md`)
- Weather DB → SQL and Python prep: provides weather data (evidence: `README.md`)
- SQL and Python prep → Prepared datasets: cleans and aggregates (evidence: `README.md`)
- Prepared datasets → Terminal forecasts: supports forecasting (evidence: `README.md`)
- Prepared datasets → Carrier forecasts: supports forecasting (evidence: `README.md`)
- Prepared datasets → High-traffic classification: supports classification (evidence: `README.md`)
- Prepared datasets → Traffic clustering: supports clustering (evidence: `README.md`)
- Terminal forecasts → Power BI dashboard: visualizes forecasts (evidence: `README.md`)
- Carrier forecasts → Power BI dashboard: visualizes demand (evidence: `README.md`)
- High-traffic classification → Power BI dashboard: visualizes traffic patterns (evidence: `README.md`)
- Traffic clustering → Power BI dashboard: supports gate allocation (evidence: `README.md`)
- Peak and recovery analysis → Power BI dashboard: shows recovery comparisons (evidence: `README.md`)
- Prepared datasets → Peak and recovery analysis: supports comparison (evidence: `README.md`)
- Power BI dashboard → Port Authority planners: informs operations (evidence: `README.md`)
- Terminal forecasts → Reports and presentations: provides model outputs (evidence: `README.md`)
