Skip to main content
100%

Gist 384c1abad76524c5baaf3d34988e7bed

✓ Published0🌍 Public
JJastor11
Last edited Oct 22, 2015
Created on Dec 11, 2025

This example maps ZIP codes to the congressional districts they overlap, using output from the Sunlight Foundation Congress API. The script `get_multi_state_zips.py` sends HTTP requests via the `requests` library, querying the API for each ZIP code in a hardcoded list. The resulting output shows that many ZIP codes span two states, with each state and district number listed for every ZIP. The visualization highlights how geographic boundaries and congressional districts do not always align, revealing the complex, multi-state nature of these postal regions.

AI-generated description

Similar vizzes