APIs for translating addresses to Congressional District

Showing 1-3 of 3 messages
APIs for translating addresses to Congressional District Rob Thorne 6/6/11 6:46 PM
I've been looking over Open Dems, and seeing what's exposed at this
point and what isn't.  I work with Democrats Abroad, and am interested
in using stuff from the lab for their sites.

I quickly looked over the Precinct API, which does both more and less
than what I'd need.  An ideal resource would be any way of translating
addresses into CD at the very least (getting state district data would
be good as well), since that would make it easier for DA's membership
to make a difference in races like last month's NY26 race.

What do you guys recommend?

Thanks,
Rob

Rob Thorne
Torenware Networks
Re: APIs for translating addresses to Congressional District Nathan Woodhull 6/6/11 6:53 PM
This API should be able to help. I'm not sure that the DNC provides
exactly that service publicly.

http://congress.mcommons.com/

You'll need to geocode to get lat/lng first, and then feed the
coordinates into that in order to get CD back.

Nathan

Re: APIs for translating addresses to Congressional District Chris 6/6/11 6:53 PM
Hey Rob,

You should check out the API that Mobile Commons built:
http://congress.mcommons.com/ - it takes as input a latitude and
longitude, so you might need to use google's clientside geocoder
(http://code.google.com/apis/maps/articles/geocodestrat.html) or
similar to turn an address into a lat/long and then ping the Mobile
Commons API with that.

Hope that helps,
chris

On Mon, Jun 6, 2011 at 9:46 PM, Rob Thorne <tore...@gmail.com> wrote: