TU Wien • 193.166 Visualisierung (Vis2) • Final Project

Direction-Based Pattern Mapping of NYC Taxi Trips

This project reproduces the methodology of Yao et al. on the NYC Yellow Taxi dataset using H3 hexagonal spatial aggregation and interactive D3.js visualizations. The aim is to reveal spatial interaction characteristics by encoding movement magnitude and travel distance into direction-based hexagonal glyphs.

H3 resolution 8 (138 active hexagons) 6 directional bins Interactive D3.js Paper-faithful FIX4 view Overview flow map
Note: Please open the interactive demo via a web server (local or hosted). Direct file access (file://) may prevent JSON files from loading due to browser security restrictions.

Method

We discretize NYC into H3 hexagons (resolution 8) and aggregate trips per hexagon. For each hexagon, movements from pickup to dropoff are binned into six directions and summarized with magnitude and distance statistics. The resulting directional summaries are rendered as a direction-based pattern glyph.

Demo

The live demo is provided as a single-file launcher with multiple tabs (views): a main interactive view, a paper-faithful reproduction (FIX4), and an overview flow map.

Screenshots

Key views of the interactive system.

If an image does not show up, verify the filenames in site/assets/ match screen1.png, screen2.png, screen3.png.

Data

The preprocessing pipeline produces the following files loaded by the browser:

How to Run (Local)

Start a local web server from the project root folder (C:\Users\Mehran\viz), then open the project website:

cd C:\Users\Mehran\viz
py -m http.server 8001
http://localhost:8001/site/
Keep the terminal open while viewing the demo. On Windows, use py if python is not recognized.

Team