Well there’s $1 million down the drain. Voter turnout for the 2015 provincial election here in Alberta ended up being 53.7%, down from 54.4% in 2012. The flashy ad campaign that Elections Alberta ran probably had very little impact on those numbers, if it had any impact at all. I’d wager than anger against the PCs and enchantment with the NDP’s orange crush did more to impact voter turnout than #ChooseYourAlberta did.

They could have spent that money on things that would have actually, measurably impacted turnout. Like more voting stations. Or better educational resources on how to vote. Or online voting. Or, as I will argue for in this post, on a better website and on open data. Let’s start with the website.

Is a functional, reliable, up-to-date website too much to ask for in 2015?

The Elections Alberta website is an unmitigated disaster. It’s garish, uses tables for layout, and is horribly unfriendly to use on a mobile device. Worse, there’s not just one website, but many. Here are some of the subdomains I’ve come across:

http://www.elections.ab.ca

http://results.elections.ab.ca

http://wtv.elections.ab.ca

http://map.elections.ab.ca

http://streetkey.elections.ab.ca

http://efpublic.elections.ab.ca

http://resultsnew.elections.ab.ca (which didn’t even exist before the election, I’ll come back to that in a minute)

There are probably others that I haven’t even found yet, too. Each of those sites has a different navigation menu even though they share a similar design, which makes them very disorienting. Worse, they change seemingly on a whim. Links are removed or change, redirects are put in place, and there is no revision history.

I suppose you could argue that we don’t have elections very often so it’s not worth putting a lot of money into the website. But I’m not talking about a fancy, complicated, expensive redesign. I’m talking about a simple, responsible, and trustworthy website that is actually useful.

I think being trustworthy is especially important. Elections Alberta is the authority on elections in Alberta – I would expect to be able to go their website to find accurate, reliable information. But it’s hard to trust a site that is constantly in flux, with information appearing for a few days and then disappearing again, or links that look like they were added almost as an afterthought.

For instance, I downloaded a list of candidates in the 2015 election in Excel format a few weeks before election day, as I was building my results dashboard. It was somewhere on the WTV site. Today that page is gone, and the WTV site redirects to results. Thanks to the Wayback Machine, I can see that a completely different site used to be there, with the link to the Excel document I had downloaded. Why remove that?

It seems they have removed nearly all of the previous information and functionality now that the election is over. Searching for your candidates has been replaced with finding your MLA. Which kind of makes sense, except that you’re on the Elections Alberta site, not the Legislative Assembly website. I expect to find election-related information at Elections Alberta, thank you very much!

A small fraction of the $1 million ad campaign budget would have gone a long way toward addressing these issues with the Elections Alberta website.

It’s time to get on board the open data bandwagon

I really like building things for elections. Whether it’s a results dashboard, a where-to-vote tool, a sign management system for a campaign, or something else entirely, I enjoy it all. These projects generally need data. Sometimes you crowdsource the data (where did volunteers drop all of the signs) but often you want official data from the election authority. In the case of the provincial election, I wanted to build a site that was useful before and after the election, with a where-to-vote feature, information on all of the candidates, and a results dashboard. I needed some data from Elections Alberta to make it happen. Here’s a rough overview of what I wanted:

A list of all parties (ideally with contact info)

A list of all candidates (ideally with contact info, their electoral district, etc.)

A list of all electoral districts (ideally with returning officers and other info)

A list of all polling stations (ideally with addresses and contact info)

The geographical boundary data for each electoral district

The geographical boundary data for each polling station

Results data for the 2015 election

Historical results data

Each of those datasets would allow me to build additional features, especially when combined with my own data. All of them are fairly straightforward in my opinion, and should be things that the authority on elections would have. Once I knew which datasets I needed, I set about finding them.

My first stop was the Alberta Open Data Portal: “The portal makes data the provincial government collects on behalf of citizens publicly available in machine readable formats with an open licence.” Like the City of Edmonton’s data catalogue, the Alberta Open Data Portal should be a one-stop shop for open data. But unfortunately, it contains no election-related data. I of course submitted a dataset request, but knew it wouldn’t be actioned in time. I still haven’t heard anything back about it.

I knew at this point that I’d have to hunt each dataset down individually, likely on the Elections Alberta site. And given what I wrote above about the website, I knew that was likely to be problematic.

As mentioned I found the list of candidates in Excel format. I also managed to find the electoral district boundary information and the polling station boundaries here. I ended up scraping nearly everything else, including the list of electoral districts. Just four days before the election, after repeated requests that went unanswered, they added an Excel document of all the polling stations (which you can see here via the Wayback Machine).

I’m pretty happy with the way the results dashboard turned out, but again it was all scraped. Instead if making a results feed available, or any kind of structured data, Elections Alberta only provides a static HTML page (which of course does not validate correctly making scraping even more difficult). Now that the election is over, I see they have added the resultsnew site, which appears to provide an option to download the results in Excel. Too little, too late.

One quick note on historical data. You can get PDFs here, but that’s pretty useless for anything other than manual lookups. I couldn’t find anything else. The only reason my results dashboard is able to show results data from 2012 is that I had saved copies of the static HTML results files that year.

This situation is untenable. Scraping data, hunting around a constantly changing website, and pleading for more complete datasets is not my idea of an open and accessible government. Open data is not a new concept, and the Province already has an open data catalogue. All Elections Alberta needs to do is make their data available inside of it.

There’s plenty of time to fix this before the next election!

I know that election time is crunch time, and that the folks at Elections Alberta were probably incredibly stressed out and constantly faced an uphill battle. And I know there are smart, dedicated Albertans who work there. Keila Johnston, Director of IT and Geomatics for Elections Alberta, was particularly helpful. But now the election is over, and I’d really like to see some positive change.

It would be an incredible shame if we got to the next election here in Alberta and found ourselves in the same position: with a website that’s out-of-date and unreliable, and a lack of open data to power new tools and experiences for voters. Elections Alberta has the talent and ability to fix both of those issues, if they prioritize it. And the best part? It shouldn’t cost $1 million to do so.