Overview Flow Map Direction Distance Insights Methods
Geospatial Big Data

Where does
the city move?

Every dot in this dataset is a home. Every arc is a commute. Built from 8,707 real origin → destination job flows across San Francisco, this is an interactive geospatial intelligence explorer of urban commute patterns — where they concentrate, which direction they favor, and how far people actually travel to work.

Explore the flows ↓
Drag to rotate · Scroll to zoom · Hover to inspect
The dataset

The city in numbers

Filtered to San Francisco home → work pairs with valid coordinates. Every figure below is computed directly from the underlying commute records.

0
Commute pairs
0
Total jobs (S000)
0 km
Avg. commute distance
E
Dominant direction
0
Maximum single flow
Primary visualization

Follow the flow

Every arc represents movement from home to work. Arc width represents flow magnitude — the number of jobs (S000) making that commute.

Drag · rotate · scroll · zoom · hover
Home / origin
Work / destination
Width = S000 (jobs)

Live data console

8,707
Records
23,467
Jobs
1.56 km
Avg distance
E
Dominant flow

Map controls

Reset returns the map to its default bearing/pitch. Fullscreen expands the frame for detailed inspection. Pan, zoom and rotation are native to the embedded deck.gl scene — drag to orbit, scroll to zoom.

How to read this map

1. Each arc represents an origin → destination relationship: a home location connected to a work location.

2. Arc width represents S000 — the job count on that commute.

3. Orange marks the source (home); green marks the target (work).

4. Hover any arc for its exact job count. Pitch and bearing create the 3D perspective — drag to rotate.

01 Rotate

Explore the city from different angles.

02 Zoom

Reveal local flow concentrations.

03 Hover

Inspect individual commute flows.

04 Compare

Look for dominant movement corridors.

Read the movement

If we remove the map, what does direction tell us?

The Commute Compass abstracts away geography entirely. Each wedge is a compass bearing computed from every home → work pair; its length is total jobs, its colour is average commute distance.

Dominant direction
E
3,337 jobs

The eastern bearing carries the largest aggregated flow in the filtered dataset — 14.2% of all 23,467 jobs. Commutes heading north-east travel farthest on average (2.05 km), a pattern the 3D arc map hints at but never states directly.

Directional spread

Jobs are not evenly distributed across bearings — the strongest direction (E, 3,337 jobs) carries roughly 5.5× the flow of the weakest (SW, 605 jobs). Movement concentrates east and east-south-east of the filtered home locations, tapering sharply toward the south-west.

How far do people move?
1.56
km average commute

69% of jobs in this filtered area involve a straight-line commute of under 2 km — a dense, walkable catchment rather than a long-haul commuter zone. Distances beyond 4 km account for less than 0.4% of jobs.

Distance bands (jobs)

7,206
0–1 km
8,955
1–2 km
5,714
2–3 km
1,519
3–4 km
Top commute flows

Not all flows are equal

The ten strongest home → work relationships in the dataset, ranked by job count. Most pairs move 2–3 jobs; these ten alone account for 178 jobs — 0.76% of the total — on just ten specific routes.

What the flows reveal

What does the data tell us?

Four data-driven readings of the same underlying dataset — expand each for the numbers behind it.

1Where is movement concentrated?›
The filtered dataset spans a compact ~4.7 km × 3.7 km window of San Francisco (lat 37.7665–37.8058, lng −122.4313 to −122.3872). Flows are not evenly spread within it — the single strongest corridor (21 jobs) runs between two points roughly 1.3 km apart near the dataset's eastern cluster, and the top ten corridors all sit within that same eastern half of the study area.
2Which direction dominates?›
East carries the most jobs of any bearing — 3,337 of 23,467 total (14.2%). The weakest bearing, south-west, carries only 605 jobs. Movement is not evenly distributed by direction; it skews decisively eastward.
3How far are commutes?›
The average straight-line commute is 1.56 km. 69% of all jobs travel under 2 km, and fewer than 0.4% travel beyond 4 km — this reads as a dense, walkable catchment rather than a long-haul commuter zone.
4Which flows are strongest?›
The single largest flow carries 21 jobs on one origin-destination pair. The top ten flows range from 16–21 jobs each, totalling 178 jobs (0.76% of all jobs) — the vast majority of the 8,707 recorded pairs move just 2–3 jobs.
Synthesis

The big picture

Where

Spatial concentration

Flows cluster tightly around a compact eastern corridor of the study area.

How much

Magnitude

Most pairs carry 2–3 jobs; a handful of corridors carry 16–21.

How far

Distance

69% of jobs travel under 2 km — short, walkable commutes dominate.

Which way

Direction

East carries 5.5× the flow of the weakest bearing, south-west.

Methodology

How this was built

The official workflow required validation, cleaning, spatial filtering, ArcLayer creation, a 3D view, tooltip interaction, and static HTML export. That pipeline is preserved end-to-end below.

01Data loading›
Raw commute records loaded from the public Bay Area origin-destination dataset, containing home and work coordinates and job counts per pair.
02Validation›
Coordinate fields (lat_h, lng_h, lat_w, lng_w) and the flow field (S000) checked for completeness and numeric validity.
03Cleaning›
Null and malformed records removed; numeric fields coerced to consistent types ahead of spatial filtering.
04Spatial filtering›
Records constrained to a San Francisco bounding box, yielding the 8,707-pair filtered dataset used throughout this dashboard.
05Origin → destination mapping›
Each record's home coordinates become the arc source; work coordinates become the arc target.
06ArcLayer configuration›
A PyDeck ArcLayer renders each pair with getWidth = S000 × 2, orange source colour, green target colour, and a dark-matter basemap.
07Interactive export›
The deck.gl scene is exported as a self-contained, GitHub Pages–compatible HTML file with hover tooltips, pan, zoom and rotation intact.
Data & variables

Data dictionary

Field reference ›
lng_hHome longitude
lat_hHome latitude
lng_wWork longitude
lat_wWork latitude
S000Flow / job count — number of jobs on that home → work relationship

The map is not just showing where people live.
It is showing how the city moves.

Interactive geospatial commute flow analysis