Case Study · 2024 – present
Saint Paul Crime Map

The Problem
Saint Paul publishes its crime incidents as public data, but as raw records with approximate locations. A resident who wants to know what is happening around their own block has no practical way to ask that question.
Key Decisions
Rebuild geocoding on the city's own street data
Incident locations are published as approximate addresses, so where a point lands on the map depends entirely on the geocoder. I rebuilt the pipeline on the city's street-centerline data, with the US Census and Google geocoders as fallbacks, and re-processed every record back to 2014. About 52,000 incidents (21%) moved to corrected positions. Neighborhood labels now come from the official District Council boundaries, which corrected about 34,000 more. Each record stores how it was placed, so accuracy can be audited later.
Automate the monthly data load
The city publishes new data monthly, and the map is only useful if it keeps up. A companion service now ingests each release, and the month selector updates itself from whatever data is available.
Charge for extras, keep the map free
To fund continued development, I added Supporter and Pro tiers through Stripe, with a 7-day trial. The free tier stays fully functional. Paid tiers add more saved locations and PDF safety reports for an address.
Cache, rate-limit and roll out gradually
A caching layer with background warming and invalidation serves map requests, rate limiting backed by Upstash Redis caps abusive ones, and feature flags let me roll new features out gradually.
Results
- #1 Google ranking for Saint Paul crime data
- Incident data from 2014 to the present, updated monthly
- More than 25 major releases in a year, from a simple map to accounts, dashboards and subscriptions
- Covered by Jest unit tests and Playwright end-to-end tests