How to map election results by precinct
Get the precinct boundaries for the county or district, join your results on the precinct code, and colour the map. Boundary Atlas has current official precincts for about 92% of the US population (2020 Census voting districts elsewhere), each tagged with its congressional and legislative districts.
Who this is for
- Newsrooms and data journalists
- Campaigns and party organizations
- Election researchers
Ask your agent
With Boundary Atlas added to Claude, ChatGPT, Cursor or Codex (free, no key; how):
Get the precincts for Essex County, NJ from Boundary Atlas as GeoJSON with their districts, join this results CSV on precinct name, and make a choropleth.
Step by step
- List the precincts. list_children(id="us:county:<FIPS>", level="precinct") gives codes and names.
- Match names. Results feeds rarely use Census names. List the county's precincts once and match locally.
- Get the shapes. get_boundaries(id="us:county:<FIPS>", children_level="precinct", include_districts=True).
- Check the vintage. Each precinct has vintage and source_id; 2020 Census voting districts are marked, so you know where lines may have moved.
Live example
Essex County, NJ has 554 precincts in the atlas (vintage: 2020). One call returns all of them as GeoJSON, each tagged with its congressional and legislative districts:
get_boundaries(id="us:county:34013", children_level="precinct", detail="medium", include_districts=True)
Things to know
- Precinct lines change between elections; confirm the file matches the election you're mapping.
- Some licences limit commercial reuse; data_freshness lists each source's licence.
More guides
- How to convert ZIP code data to counties (or cities, or districts)
- How to find the congressional and state legislative districts for an address
- How to list the ZIP codes in a city, county or congressional district
- How to assign leads and accounts to sales territories by city, county or district
- How to match members or supporters to their legislative districts
- How to make a map of your data by county, city or district
- How to tell whether an address is inside city limits
- How to find the federal riding and polling division for a place in Canada
- How to find who represents an address in Congress and the state legislature
- How to find a city's or county's official website and code of ordinances