EFForg / call-congress

a simple server that connects calls between citizens and their congress person using the Twilio API
GNU Affero General Public License v3.0
34 stars 6 forks source link

Support locating by district #11

Closed wioux closed 8 years ago

wioux commented 8 years ago

This branch introduces support for campaigns that locate representatives by their district. The SmartyStreets query we do on act.eff.org actually returns the congressional district for the address, so we can configure campaigns on call.eff.org to expect that. This is preferable to looking up members by zip code, since that's imprecise and for some codes can map to up to 5 congress members.

The only real hitch was that for call ins, it's not friendly to require callers to find out their own district and then punch it in, so for incoming calls we fall back on the imprecise zip code -> district map. Callers will eventually be connected to their representative, though they may have to speak to someone from a neighboring district as well. This is already the case though.

vbrown608 commented 8 years ago

Looks good!