The Pennsylvania Department of State releases text files of every campaign contribution to every state race on its website. We downloaded those files and selected the contributions to the Corbett and Wolf campaigns.

We then standardized the names and addresses. For instance, if John Smith and John A. Smith each sent in a contribution from the same address, we figured out if they were the same person. Then we combined the amounts. We also corrected for any misspellings.

We standardized the zip codes. Some people wrote five-digit zip code and others wrote full nine-digit zips. We wanted each person to be represented by a five-digit zip code so we could easily group them.

The original data did not contain a designation for counties. Originally, we used Census lookup tables and the Census geocoder to generate counties, but that resulted in an error rate of approximately 4.5 percent. During the campaign, we used the Google Maps geocoder through the open-source mapping program QGIS. 

For the app’s final update, we used a combination of geocoding resources. First, we used a Bing/MapQuest geocoder developed by Peter Aldhous, BuzzFeed science and health reporter and professor at University of California. Any addresses that were not found using that method were feed through the Google geocoder. We believe using multiple geocoders has given us the most accurate results.

This story was made possible by donations to our independent, nonprofit newsroom.

Can you help us keep going with a gift?

We’re Pittsburgh’s Public Source. Since 2011, we’ve taken pride in serving our community by delivering accurate, timely, and impactful journalism — without paywalls. We believe that everyone deserves access to information about local decisions and events that affect them.

But it takes a lot of resources to produce this reporting, from compensating our staff, to the technology that brings it to you, to fact-checking every line, and much more. Reader support is crucial to our ability to keep doing this work.

If you learned something new from this story, consider supporting us with a donation today. Your donation helps ensure that everyone in Allegheny County can stay informed about issues that impact their lives. Thank you for your support!