<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Bikes and Code &#187; transitdata</title>
	<atom:link href="http://warrentaylor.ca/tag/transitdata/feed/" rel="self" type="application/rss+xml" />
	<link>http://warrentaylor.ca</link>
	<description>Thinking, actions and related topics</description>
	<lastBuildDate>Wed, 07 Dec 2011 23:03:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Number crunching and buses!</title>
		<link>http://warrentaylor.ca/2009/12/04/number-cruching-and-buses/</link>
		<comments>http://warrentaylor.ca/2009/12/04/number-cruching-and-buses/#comments</comments>
		<pubDate>Fri, 04 Dec 2009 05:57:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[transitdata]]></category>

		<guid isPermaLink="false">http://warrentaylor.ca/?p=258</guid>
		<description><![CDATA[A few days ago, Translink announced that they would be releasing their bus, train and seabus route information in a standard format. A list of every bus stop, route, time, etc might not seem overly exciting to most people, but I love datasets. Admittedly, I often don&#8217;t know exactly what to do with datasets, but [...]]]></description>
			<content:encoded><![CDATA[<p>A few days ago, <a href="http://translink.ca">Translink</a> announced that they would be releasing their bus, train and seabus route information in a <a href="http://code.google.com/transit/spec/transit_feed_specification.html">standard format</a>. A list of every bus stop, route, time, etc might not seem overly exciting to most people, but I love datasets. Admittedly, I often don&#8217;t know exactly what to do with datasets, but that&#8217;s hardly the real issue here. Anyhow, this seemed like a promising thing for me to do and I downloaded it, unzipped it and spent a couple of hours prepping a Rails project to serve as a new home for it.</p>
<p>Roughly 500 routes, 8700 stops, 126000 trips and 3.4 million timepoints at those stops. Not a whopping amount of data, but enough to start having some fun. My initial plan was just to be able to plot the stops for a given route onto google maps. That&#8217;s done in it&#8217;s ugly glory at my <a href="http://stopfinder.high-water.ca">stopfinder</a>. If you want to search for a 1 or 2 digit route, put in the leading 0&#8242;s. Sorry, haven&#8217;t done that yet.</p>
<p>My next steps are going to be to publish a number of primitive operations on the data with results in JSON format. Things like &#8216;closest stop to lat,lon&#8217;, &#8216;how to get from stop x to stop y&#8217;, and other similar sorts of things. The idea being that if I can build up a suitable library of common operations on the dataset, any future ideas that do come to mind should be relatively easy to implement.</p>
<p>That and if anyone does want to do some data mining, well, this is an option. I&#8217;ll post any updates, formats and that sort of thing on this site as I work through it. In general, the services will be pretty much simply URL based and will return raw JSON. Nothing special, but fairly easy to parse and work with. I have a relatively irrational dislike of XML which I will probably get over at some point, but it will take someone making a very good argument.</p>
]]></content:encoded>
			<wfw:commentRss>http://warrentaylor.ca/2009/12/04/number-cruching-and-buses/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

