Visualizing Election Results Directly from the Ballot Box

Wednesday, June 15, 2011 | 10:18 AM

Labels: , , ,

This past Sunday Turkish citizens went to the polls to cast their vote at a critical juncture in their country's history. After the polls closed, voters across the country turned to Google first to understand the results and the impact of the election. Providing access to useful information like results for elections are closely aligned to Google’s mission and help improve democracies across the globe. In Turkey, the team at Google helped visualize and explore the latest election results as they became available. Using Fusion Tables and the Google Maps API, our elections team built a gadget that displayed province and district-level results in real-time “directly from the ballot box.” To facilitate this, we partnered with Cihan News who recruited 50,000 volunteers to provide real-time election data and received praise from voters and other media outlets for their quick and accessible reporting of election results.

By making it easy for multiple collaborators to integrate data, create visualizations and work with a variety of data types, Fusion Tables allowed us to quickly build a prototype. We created tables with static content such as district shapes and names and separate tables with dynamic content such as the number of votes received and counted ballot boxes. We wrote a simple program to periodically parse Cihan’s XML feed of results and populate the dynamic content tables. We then were able to merge both the static and dynamic tables and visualize them directly in Fusion Tables without writing a single line of new code. As soon as Cihan uploaded the data, we were ready to visualize. The result was a quick and easy mashup that we could check for accuracy.



The gadget was built using PolyGonzo, an open source library for the Google Maps JavaScript API. PolyGonzo provides fast rendering and highly interactive polygons in most modern browsers using the HTML5 canvas element and GeoJSON shape data. From Fusion Tables, we exported the static content for Turkey’s 957 districts to KML and we then converted the shapes into simplified GeoJSON. Using the Fusion Tables JavaScript API, the gadget also periodically read from the same dynamic content tables we used to build our prototype. The end result was an engaging gadget whose static and dynamic content could be traced back to Fusion Tables.

We hosted the gadget off of Google Project Hosting. By 7:30 in the evening local time we were seeing over 500 queries per second to load the gadget’s static content from Project Hosting and over 1000 queries per second to load the gadget’s dynamic content from Fusion Tables - both astounding figures. As evidenced by the volume of updates on Twitter and elsewhere on election night, Turkish voters were indeed eager to share the details of the election outcome courtesy of this custom mapping platform.

Projects like this help people around the world view and explore information and also allow people to collaborate and merge different data sources. For instance, a tech savvy reporter could incorporate publicly available socioeconomic or past election data to the Fusion Table and use the Google Maps API to overlay the data directly onto the existing map. The web holds much promise to continue to transform politics and elections from a passive process to an active, participatory one. The elections team here at Google will continue to seek solutions and build tools and platforms to help inform and connect voters and candidates across the globe.

As evidenced by this latest project, Google is committed to partnering with and helping news organizations succeed online and off. The Turkish election results gadget is the first of many election visualizations we hope to create in the future. Soon, we’re creating an election results specification so any news organization can provide the public data and can work with us to provide visualized and - importantly - searchable results on election day. We can’t wait to see what tools and products we can cook up together for elections around the world!

Posted by Chetan Sabnis, Software Engineer, Public Sector Engineering

14 comments:

İbrahim Halil Dere said...

Could anyone who knows the link of this map give it?

�zg� said...

I noticed the same speed as we were watching the results outside the country. Thanks Google thanks cihan news agency.

�zg� said...

I noticed the same speed as we were watching the results outside the country. Thanks Google thanks cihan news agency.

Google Politics, Elections, and Public Sector Team said...

@İbrahim Halil Dere

You can find the gadget here: http://www.google.com.tr/intl/tr/landing/elections/2011/

Bülent Keleş said...

Awesome work!

Unknown said...

This comment has been removed by the author.

Unknown said...

This comment has been removed by the author.

Unknown said...

Nice blog, it provides a lot of informative content. Thank you so much for it. You made a good blog and also you sharing the best information on this content provide good result of Visualizing Election Results Directly from the Ballot Box. I am impressed with your site’s blog of content.
Election equipment | Ballot boxes | Voting booths

thanksgiving images said...

One of the seat from 42 parliamentary constituencies of West Bengal. Bolpur parliamentary constituency seat belongs to the Birbhum District of West Bengal. Currently AITC Candidate Anupam Haz is the Member from Bolpur loksabha Seat. In Lok Sabha Election 2014 Total 1583495 Voter has been Enrolled for the voting list from this seat. The election voting % was 84.10% and total 1331732 voter has been voted for their favorite candidates. election 2014 bengal seats voting list

SEO Gnews said...

Thanks for shared informative bolg! Get all the updates about the latest election results
and elections news with us at Gnews.

sandeep saxena said...


Thank you for your nice post.it is useful,i love it very much.please share with us more good articles.
clinical sas training in chennai
clinical sas training fees
clinical sas Training in T Nagar
SAS Training in Chennai
SAS Institute in Chennai
Placement Training in Chennai
soft skills training in chennai
core java training in chennai

Paul A Hosey said...

Crafting And Building APK i like this website , try more apk

sasi said...

Superb! Your blog is incredible. I am delighted with it. Thanks for sharing with me more information.
PHP course in bangalore
PHP Training in bangalore
php training in coimbatore
PHP Course in Chennai
php training in madurai
php course in bangalore
php course in coimbatore
Big Data Training in Coimbatore

Reshma said...

Great post. keep sharing such a worthy information
data science course in hyderabad
Data Science Training in Chennai
Data Science Courses in Bangalore
Data science course in coimbatore
Data Science Certification in Hyderabad
Data Science Training in Hyderabad
Data Science Training Institute in Hyderabad
Selenium Training in Chennai