Beijing Taxi Heatmap Visualization

Real-Time Interactive Heatmap of Beijing's Taxi Data

Beijing Taxi Heatmap Application Screenshot

Overview

The Beijing Taxi Heatmap Visualization is a realtime tool designed to display the movement and density of taxis across Beijing depending on the time of day. You can select a time interval for the taxi data points that are to be displayed. We used deck.gl with MapLibre for rendering, FastAPI for the backend, and GeoPandas for spatial data processing.

Features

How It Works

The application fetches taxi location data from the backend server, matches it to Beijing's street network to determine taxi densities across different street segments, and then visualizes this data on an interactive map. Users can control the time intervals and playback speed to display taxi density over specific periods.

Program

View Live Program

Source Code

View Source Code

Code Documentation

View Source Code

Installation

Follow the steps below to set up the project locally:

  1. Execute download_data.sh in src/backend to download the dataset
  2. Use environment.yml in src/backend to activate the conda environment with the necessary dependencies
  3. Open a powershell window in src/backend and type:
    fastapi dev main.py
  4. The first startup will take a bit longer, because the street network of Beijing will be downloaded and cached
  5. Once the application is running, execute the index.html (via the link above) to open the frontend application

Technologies Used

Authors