Skip to content

About

A full-stack application that predicts public transit demand for events and visualises nearby bus stops on an interactive map.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

Repository files navigation

Festival Transit Demand Prediction

A full-stack application that predicts transit demand for festival events and visualizes nearby bus stops on an interactive map. Developed during the 24-hour 2025 Edinburgh festivals hackathon with my team of 4 first-years (including me).

The backend was solely contributed by me.

The original non-cleaned version of the repo actually used during the hackathon is: https://github.com/Kaiwen-W/festivals_hackathon

Tech Stack

Frontend:

  • React (v19)
  • Leaflet & React-Leaflet for interactive maps
  • React-DatePicker for date selection
  • CSS for styling

Backend:

  • FastAPI (Python web framework)
  • Uvicorn (ASGI server)
  • Pandas (data processing)
  • GeoPy (distance calculations)
  • Requests (API calls to transit data)

Prerequisites

  • Node.js and npm (for frontend)
  • Python 3.8+ (for backend)

Installation & Running

Backend Setup:

cd festival-map/backend
pip install -r requirements.txt
python main.py

The API will be available at http://localhost:8000

Frontend Setup:

cd festival-map
npm install
npm start

The app will open at http://localhost:3000

API Endpoints

The backend provides the following endpoints:

  • GET /: basic API information
  • GET /events/{event_id}: details for a specific event including nearby bus stops and demand predictions
  • GET /events/search: searches events with multiple filter options
  • GET /events/list: lists all events with pagination
  • GET /stats: returns aggregated statistics about the dataset

About

A full-stack application that predicts public transit demand for events and visualises nearby bus stops on an interactive map.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages