Elections are just a few days away, and here at Engage everyone is working really hard to keep up with this crazy time of year. Google put out this amazing API called the Civic Information API that will locate your voting location for the 2012 General Election. Even though a lot of them have passed, it also returns very accurate and precise information about where your early voting location is hosted (along with some other nifty information about what’s on your ballot).
Anyway, this is a really quick and dirty code project I threw together as an example for anyone interested. Essentially, it’s a small PHP library and starter kit for the Google Civic Information API that works and displays some basic information. You can check out other elements in the response for your own use at Google’s Civic Information API page. Also provided is a working example and demonstration.
You can view the demo here, and fork the source here on GitHub.
Elections are coming in less than a week! If you don’t have the time to build your own polling locator or use this API, you could always just embed Google’s own Voter Information Tool on your site.