Convert Addresses to Congressional District and Display on a Map

This guide will walk you through how to find Congressional district number for an address and then display that information on a map.

1. Gather the Addresses You Want to Convert to Congressional District

First you will need to organize the addresses you want to convert to Congressional districts into a spreadsheet. The addresses will either need to be all in a single column, or all split into multiple columns, like below. It doesn't matter which you use, as long as the format is consistent.

Spreadsheet of addresses in multi-column format for geocoding

Spreadsheet of addresses in single-column format for geocoding

Alternatively, if it's easier for you, you can use the Geocodio API to convert addresses to Congressional districts. See our documentation on how to convert address to Congressional districts here.

(Can I convert ZIP codes to Congressional districts?)

Yes! Sort of. Because ZIP codes are postal routes and not geographic areas, and because they cover large areas of land, you can geocode ZIP codes -- with caution. Congressional districts often take weird shapes and span neighborhoods, cities, and counties. Congressional districts rarely follow boundaries. If you were to submit just a ZIP code to Geocodio, we would return the most likely Congressional district. If you use our API, we'll return all of the possible Congressional districts ranked by the proportion of that ZIP code that is in each Congressional district. See more on converting ZIP codes to Congressional districts.

2. Get the Congressional District Information for the Addresses

If you just want to get the Congressional districts, you can upload the spreadsheet to Geocodio and in step 4 of the upload process select "Congressional Districts." You can upload your spreadsheet here.

(Can I also add Senator/Representative phone numbers and emails to addresses?)

Yes! With Geocodio you can add Senator and Representative names, phone numbers, email addresses, and more all in the same step. Just select "Add Congress contact information?" when you add Congressional districts -- it's free when you request that add-on. You can see the full list of Congressperson information we return here. It's included with all Congressional district API results.

3. Display Addresses with Congressional Districts on a Map

With Geocodio, you have two options for displaying addresses with Congressional district information on a map:

  • A simple map that shows all of the points with all of the data returned, which is included for free whenever you upload a spreadsheet
  • A more advanced, editable map with Geocodio Maps where you can customize the information pop-ups and show the Congressional district boundaries

The video below shows how you can add Congressional district boundaries to a map with Geocodio Maps.

Your First Map with 100 Locations Is Free, No Strings Attached

Try Now

Geocodio Maps

Hassle-free mapping. Unlike most mapping services, there are no charges for page views.

API Documentation

Add Congressional districts and contact information via API.

Sample Output

See a sample spreadsheet with Congressional districts and contact information added.