Tag Archives: open data

An animated day in the life of Montreal’s bus network

It’s fun the kinds of things you can do with data.

Montreal’s transit agencies, including the STM, STL, RTL and AMT, have made their trip data public through a standard called General Transit Feed Specification (GTFS). This allows the data to be sucked into applications like Google Maps, making it easier for people to plan their trips. The time of every stop of every bus is a set data point.

In this video, published a few weeks ago on YouTube, someone has taken this data and created an animation of every bus trip during the average weekday in the Montreal area. STM, STL and RTL buses are represented by little dots that race along their routes.

It’s an interesting way to visualize the activity involved in public transit. The animation, which is presented as a 1:600 timelapse (every second represents 10 minutes), starts at 4am with just the night buses on the island of Montreal. After about 6am, it expands into the morning rush hour, and you can see a clear bias toward downtown from all directions. Some thoroughfares like Henri-Bourassa Blvd., Sauvé St., Parc Ave. and Côte des Neiges Rd. emerge as lines because they see so much bus traffic during this time. The traffic dies down a bit after the morning rush hour, though not as much as I expected. After about 3pm there appears to be a general bias away from downtown as the evening rush hour begins. After 7pm, it noticeably dies down, more so after 11pm and 12:30am, and after 2am it’s back to just the night buses.

Each of those dots is a bus with a driver in it. Some could have just a few passengers on board, while others could be so packed they’re not stopping to pick up more.

It’s an expensive system, and a complicated one. But without all those little dots, the city would grind to a halt.

If you’re interested in trying to figure out other cool ways of manipulating transit data, you can download the STM’s GTFS data yourself. Data from the RTL and STL and AMT are also available. (The AMT data includes commuter trains, its express buses and data from smaller transit agencies like the CIT du Sud Ouest and CIT La Presqu’île.)

Continue reading

Montreal, where data is becoming free

This post has also been published at openfile.ca

The City of Montreal has jumped on the open data bandwagon, setting up a website with raw data available for download.

There isn’t that much there right now (a full list is available in their press release), but the fact that the city even acknowledges the use of this is a huge step forward, and means we should expect much more in the months to come.

The idea behind open data is that information be made publicly available in its purest form. Instead of charts or long reports, the actual spreadsheet tables or map files are posted online so that application developers can find new and interesting ways of presenting information for public consumption.

For an example, here’s a Google map of the city’s major construction projects currently under way.

Now, this map doesn’t include highway projects that are done by the Ministère de Transport du Québec, or bridge projects under federal jurisdiction. But if those organizations had similar raw data available, a mashup of them together would be trivial. That information could then be used by GPS devices or trip planners to plan around construction sites. Or they could be used by radio station traffic reporters, or by investigative journalists, or by FTQ union thugs.

The best part is that the best use of this data might be something the people who put it online never even considered. The limits are not technological in nature, but merely the limits of the imaginations of thousands of computer geeks.

Another example: This XLS file of bike path counters. A few seconds in the spreadsheet and I find the busiest day for cyclists so far this year was Tuesday, June 21. And the top 25 days are all between May 30 and July 10. Without the raw data, I would have needed to wait for some bureaucrat to create an annual report, if they even bothered at all.

The STM should follow this example

One organization that I think could substantially benefit from an open data policy is the Société de transport de Montréal. Somewhere, it has a huge database of thousands of bus stops and schedules. It uses that data to feed its website, to give to Google Maps, and to create its printed schedules. But the data isn’t available directly to developers. So independent apps that help people know when the bus stops have to scrape the STM’s website for the information.

Giving the data away could help significantly in making these applications better, and in finding new ways of getting information to people that would encourage them to take public transit.

I look forward to seeing what data gets released through this website, and particularly how developers can take that data and do interesting and useful things with it.

If this kind of thing interests you, by the way, Montréal Ouvert is holding a hackathon on Nov. 19. Hopefully the city can put some more stuff online by then that can be played with there.

UPDATE: A congratulatory post from Montréal Ouvert, and more coverage from:

And here’s Projet Montréal shitting all over it because it’s not transparent enough for their liking.

UPDATE (Nov. 1): The city is launching the portal on Nov. 15. And a new iPhone app, NaviCone, is already making use of the city’s construction site mapping data.