Traffic Conditions Data

So I was poking around the Dashboard Widget archive on the official Apple site and spotted a Yahoo Traffic Conditions widget. This is interesting because they are somehow getting the data from their web site in a easy-to-parse format. So, I peeked under the hood and, sure enough, there’s an RSS feed for traffic conditions! A url will look something like this:

The parameters are:

  • csz The location from which you want to do your search – as far as I know only cities are supported at the moment. You can provide both a zipcode, a city or an address – all seem to work.
  • mag The level of ‘magnification’. 3 = 4 Miles, 4 = 10 Miles, 5 = 40 Miles
  • minsev The minimum severity of the traffic condition. 1 = Minor, 2 = Moderate, 4 = Major, 5 = Critical

This is definitely exciting, I can see lots of applications of it already. My friend, Darrin, is already working on a VXML Traffic app – so that you can call a number and get the current traffic conditions. So there’s that, at least

Updated: Apparently pre tags don’t care too much for links – the link has been fixed.

Update: Generate the above URL quickly and easily. (Requested by LifeHacker)


Posted: May 1st, 2005

Subscribe for email updates

40 Comments (Show Comments)

Comments are closed.
Comments are automatically turned off two weeks after the original post. If you have a question concerning the content of this post, please feel free to contact me.

Secrets of the JavaScript Ninja

Secrets of the JS Ninja

Secret techniques of top JavaScript programmers. Published by Manning.

John Resig Twitter Updates

@jeresig / Mastodon

Infrequent, short, updates and links.