Open data and the news

By Leslie Young

It’s generally accepted among journalists that in Canada, it’s very hard to get an interesting news story out of the data that governments make available for download on their various “Open Data” sites.

Quite simply, it’s usually very dry material.

Locations of public drinking fountains and city trees might be nice for app developers, but rarely makes for a story that has any impact or tell us something we’d like to know.

So it’s always refreshing to see a fun data set on an open data government site. I recently came across sales data for B.C. Liquor Stores on the Data BC site. Even better, it was broken down by region and drink type. Immediately, I thought that this would make a fun map that people might like to play with.

I downloaded the data set and went looking for population data and geography.

Luckily, this was B.C., so the excellent B.C. Stats site became my source. In my experience, B.C. has in this website the best and easiest-to-navigate source for basic demographic and geographic data in the country. It is much, much easier to find regional populations and boundary shapefiles for B.C. than for Ontario, for example.

On the B.C. Stats site, I was able to find population estimates for those aged 19 and up (I’m assuming everyone’s obeying the law here) as well as the geography files. So I put together a map showing average litres of alcohol purchased per person. Fun!

This is the second map I’ve done using B.C.’s open data. (The first is here.) I really hope other governments take note of the work Data BC is doing, and that Data BC continues to add interesting datasets to its collection.

Tags: maps open data

Graphic Monday: Bankruptcy maps

By: Leslie Young

In today’s Graphic Monday, we take a look at bankruptcy data from across Canada. It seems that the Prairies have a much lower rate of bankruptcy than other parts of Canada, which is interesting. 

I would have liked to have it all in one big, nationwide map, but unfortunately Canada is a little too wide from east to west for our website and Fusion Tables to easily accommodate. According to some conversations I’ve had on Twitter, this is a common problem for those who do mapping online.

Click the image below to see the feature on GlobalNews.ca.

How we built the Gardiner map

By Leslie Young

(crossposted from GlobalToronto.com)

Building our interactive map of the Gardiner Expressway was a long process.

It started with an idea, of course. After hearing so many reports of concrete falling from the Gardiner during the summer of 2012, I wondered if maybe there was something we weren’t hearing. Was there more concrete falling than we knew about? Were there other problems?

This sort of thing tends to be well-documented by cities, so Freedom of Information seemed like the answer.

I made two Freedom of Information requests to the City of Toronto, one for all emails and communications products dealing with falling concrete on the Gardiner, and the other for all engineering and inspection reports.

When I got the information, it was a little more than 2000 pages long. So, I of course had to read it. It was at this stage that words like “punch-through” really jumped out at me.

The feeling was that if we were going to release a story like this online, it would be a shame not to visualize it. The obvious choice for a visualization seemed to be a map, since people were going to want to know where the problems were.

So we wanted to make a map.

The first step was to catalogue each event. This involved deciding on our criteria (loose concrete that presented some kind of risk. Either it had a high chance of falling, or it was above a high traffic area). I took my cues on the criteria from the documents themselves. Many of them are specifically categorized in this way.

This involved putting every document we had into Document Cloud, a tool for sharing and annotating documents, for easy categorization.

So, I read through every report that fit those criteria, looking for any mention of a location. I then entered those details into a spreadsheet and created a Document Cloud reference for every incident.

Almost all of the locations were referred to by “bent number” instead of an intersection. This meant that you would see a reference to “Bent 23-25” for example. So, changing this into a useable latitude/longitude coordinate for mapping purposes required some extra work.

We purchased a technical drawing of the Gardiner that listed bent locations from the City of Toronto. Then I went through each incident, first placing it on a bent, then manually assigning coordinates.

Once the spreadsheet was ready to go, it was loaded into a Google Fusion Table. Global News’ newest web developer, Kate Grzegorczyk, built the interface in Javascript, drawing upon the Fusion Table data to create an interactive in-depth experience.

Since we published the story, the Gardiner has been a hot topic at city hall, with city officials responding with press conferences and councillors debating the merits of different plans for the Gardiner. The problems we raised were news to both the public and to councillors, so the debate might have been very different without it.  

All the single ladies (and men) - fun with census data

By Leslie Young

As an addition to our census coverage, I decided to take a more lighthearted look at our Statistics Canada spreadsheets, and turn them into a Census Dating Guide.

It was a lot of fun to make. It involved pulling out the unmarried, not common law individuals, male and female, from all age groups and analyzing the data.

We found that St. John’s and (oddly) Saint John had the highest ratio of available women to men. Saguenay, Quebec had proportionately the most men.

You’ll find a map at the bottom of the article that lets you explore concentrations of single people by sex and age group, down to the census tract level.

But the part I found most fascinating was the availability by age chart. It shows all kinds of things, like that men are probably getting married earlier, that enough people get divorced in their forties for it to make a blip on the graph. And, of course, that the supply of available elderly women far outstrips that of men.

Toronto’s bees

By Leslie Young

Last week, we put together a map of beeyard locations in Toronto. They’re all over downtown and the west end, which is pretty neat – people seem to be really taking up this hobby.

You can read the story here and download the data from Buzzdata (ha!) here.

We got the idea to show not just the beeyard locations, but also the foraging areas of those bees, so that people would know where they are likely to encounter bees from a given hive. It seemed simple enough: find out the range of a bee (about 3km) and draw circles with that radius around each point.

Finding an effective way to do this was surprisingly difficult. We hit upon this great tool from freemaptools.com, which allowed you to set a radius and bulk upload a set of points. It then draws a circle around each point and lets you export the resulting polygon.

It’s very easy to use and something we’ll be keeping in our toolbox for future projects.

Mapping marijuana grow houses

by Patrick Cain

We’ve mapped marijuana grow operations in Toronto before, but this year’s iteration is more ambitious: 

- First, we took the fresh 2011 census data and our census tract boundary set, mashed that up with several years’ worth of grow operation addresses, and created a map showing grow house rate by census tract. If you have the ability to count points within a polygon (Leslie showed me how to do this) it opens the door to interesting off-the-grid uses for census data.

- The other map shows grow ops by location for several years:

Tags: maps Toronto

Mapping penitentiaries

by Patrick Cain

Public Safety Minister Vic Toews is expected to announce announced today the closure of two federal prisons: the Leclerc Institution near Montreal and the venerable Kingston Penitentiary, which opened in 1835. Leslie and I mapped all of Canada’s federal prisons by way of an interactive explainer.

Even after Kingston Pen’s closure, three pre-1914 penitentiaries will still be in service: Dorchester Institution (1880), Stony Mountain Institution (1887) and the Saskatchewan Penitentiary (1911).

Tags: maps

USA Today: Ghost factories

By Leslie Young

Neat new interactive feature from USA Today: Ghost Factories.

It’s an investigation of old smelting factory sites across the USA. I’m impressed by the investigation, the map, and even with how after you click on an individual site, you can tweet or Facebook it to your followers.

Tags: maps

Toronto’s worst intersections, redux

by Patrick Cain

Various media outlets have taken a swing at a Toronto’s Worst Intersections story at some point. It’s not an exact science - most seem to be based on reader nominations. Ours have been statistical: a ratio of reported accidents to the traffic volumes at the intersection.

Last summer, we looked at Toronto’s worst pedestrian intersections using this system (link, link). The results were revealing - most of the most dangerous places to walk in the city were suburban intersections where heavy, fast traffic on roads designed for cars met high residential density.

Here’s the worst:

View Larger Map

Last week we went though the same process for motorists, crunching a decade’s worth of collision data, or about 500,000 accidents.

Lakeshore and Jameson and Eglinton and the Allen were #2 and #3 on the list (not surprising for people who have spent time driving in Toronto) but the sleepy T-intersection of Old Finch Ave. and Sewells Road topped the list. It has little traffic, but in proportion to that, lots of accidents. Drivers have to deal with a steep hill, two blind corners in opposite directions - hard to keep an eye on both - and the semi-official gravel lane for traffic turning north, and a one-lane Bailey bridge, a leftover from Hurricane Hazel now more than half a century old.

View Larger Map

Here are screenshots of the maps:

Cross-posted at patrickcain.ca

Tags: maps Toronto