Map Lab
Congestion zone change by hour
Percent change in taxi and app pickups and dropoffs by New York taxi zone, the year after the January 2025 congestion toll against the year before, one hour of the day at a time.
Change in trips by taxi zone and hour of day, year after vs year before the toll
Inside the congestion relief zone's 38 taxi zones, the typical change in Uber and Lyft pickups depends on the hour. In the 8am hour the median zone was almost flat, at −0.4%. Around midnight it was down 9.2%, and in the 11pm hour 8.8%. Yellow-cab pickups in the same zones rose at every hour shown here. The median was +16.0% at 8am and +3.6% at 6pm. These are raw counts, so the overnight drop in app pickups goes with the toll year and is not shown to be caused by the toll. Chapter 9 finds that the per-trip fee is charged at every hour of the day, so the fee alone does not explain why the drop is larger at night. Chapter 9's comparison with the Upper East and Upper West Side core is the better guide to cause.
The medians come from the Map Lab pipeline, which unpivots the 144 hourly columns back to rows and takes the median by zone class, service and hour (maplab/pipeline/10_maplab.sql).
144 hourly columns with PIVOTchapters/03-congestion-pricing/pipeline/90_export.sqlShow SQL
CREATE OR REPLACE TABLE zone_hour_wide AS
WITH h AS (
SELECT zone_id, measure, svc, hr, sum(before) AS before, sum(after) AS after
FROM zone_hour_change GROUP BY ALL
UNION ALL
SELECT zone_id, measure, 'all', hr, sum(before), sum(after)
FROM zone_hour_change GROUP BY ALL),
long AS (
SELECT zone_id,
CASE measure WHEN 'pickups' THEN 'pu' ELSE 'do' END
|| '_pct_' || svc || '_h' || lpad(hr::VARCHAR, 2, '0') AS key,
pct(before, after, 100) AS value
FROM h)
PIVOT long ON key USING any_value(value) GROUP BY zone_id;263 zones, 144 value columns (2 measures x 3 services x 24 hours)Runs at build time in DuckDB 2.0; shown for reading.Open file
PIVOT turns the long table, one row per zone, measure, service and hour, into one wide row per zone, so the GeoJSON carries every hour as its own property. Moving the slider only changes which property the map colours by, and nothing new is downloaded. The file is 1.5 MB, against 586 KB for the all-day map in Chapter 9. PIVOT needs the list of output columns when it runs, and here DuckDB finds them by reading the data.
From Chapter 9: What taxi records can establish about congestion pricing, which estimates the toll's effect against a comparison group. Use this map to explore the data, not to estimate the toll's effect.