Is your subway system a platform?Monday, December 08, 2008 by Dave Winer. Funny thought perhaps, or maybe only in the Bay Area -- but our subway system -- BART, has an API. And it's kind of fun. I spent a couple of hours today hacking together an application, it's not all that useful, but one of these days something else will get an API that plugs in nicely and something interesting will happen. Here are the docs for the BART API. And the docs for the real-time ETA feed. And the ETA feed itself. Clearly it's a straight dump of the database of the BART trains that are running right now, and the time of their expected arrival at the various stations on the network. I wrote an app that loads the XML into a database on my server once a minute, it's quite quick -- and then it looks for trains that are arriving right now, and sends a tweet saying something like: "The train to Richmond is arriving at the Downtown Berkeley BART station." This would generate far too many tweets to be humane, no one in their right mind would want to follow a user that was announcing the arrivals of every train in every station on the BART network, which isn't even that big a network. You can imagine what a PITA that app would be for a subway system like NY or London. Not cool. So instead I had it only report on trains arriving from any direction at the three Berkeley BART stations, Ashby, Downtown and North Berkeley. That's a manageable number of tweets. And that suggested a name for the feed: BerkeleyBart. Which sounds like something from a cowboy cartoon or a Henry Fonda western starring Jimmy Stewart and Raquel Welch with Buddy Hackett as the kooky sidekick. Okay enough of that. It's a cute little thing, nothing earth-shaking, but I wonder if it's correct. Next time I'm at a Berkeley BART station I'll check it out and see if it correctly calls the arrivals of trains. Also it seems like just the thing Scoble will like. He's into trains and Twitter and really strange things. I've also set it up so it works with FriendFeed. |
Dave Winer, 53, pioneered the development of weblogs, syndication (RSS), podcasting, outlining, and web content management software; former contributing editor at Wired Magazine, research fellow at Harvard Law School, entrepreneur, and investor in web media companies. A native New Yorker, he received a Master's in Computer Science from the University of Wisconsin, a Bachelor's in Mathematics from Tulane University and currently lives in Berkeley, California. "The protoblogger." - NY Times.
"The father of modern-day content distribution." - PC World.
One of BusinessWeek's 25 Most Influential People on the Web. "Helped popularize blogging, podcasting and RSS." - Time.
"The father of blogging and RSS." - BBC.
"RSS was born in 1997 out of the confluence of Dave Winer's 'Really Simple Syndication' technology, used to push out blog updates, and Netscape's 'Rich Site Summary', which allowed users to create custom Netscape home pages with regularly updated data flows." - Tim O'Reilly.
My most recent trivia on Twitter. |