News for hackers. Stuff that matters.
Re:Enter your address and find out everyone who represents y... by wishinghand on Friday December 30, 2016 @02:40AM (#13283139)
What's the source of the data once an address is submitted? I tried to do a similar project during a hackathon and all of the APIs I found were either dead or insufficient.
Re:Enter your address and find out everyone who represents y... by Stratoscope on Friday December 30, 2016 @02:55AM (#13283179)
One API for this is Google's Civic Information API:

https://developers.google.com/civic-information/

The API has a representativeInfoQuery to list your elected representatives, and a voterInfoQuery for current election information.

Details and examples are here:

https://developers.google.com/civic-information/docs/using_a...

And this page discusses the quality and limitations of the data:

https://developers.google.com/civic-information/docs/data_gu...

Re:Enter your address and find out everyone who represents y... by dyscrete on Friday December 30, 2016 @02:52AM (#13283170)
My guess is it uses geolocation APIs to match city to politicians in your district. Maybe even looks up politicians phone numbers by area codes that belong to those cities. This is just a theory of course.