Chicago Food Inspections Explorer

As a first foray into playing with some of Chicago’s public data I decided to take a look at the food inspections data.  I started off by making a proof of concept — a basic web form for searching by address or restaurant name.  On the face of it, this isn’t a whole lot more useful than the search on Chicago’s data portal site, though it does cull some of the less immediately interesting columns.   The next step was building a Firefox Add-on that activates when you go to yelp (install the xpi or check out the source code).  When you visit a restaurant’s page it automatically inserts the latest inspection data in a collapsible box underneath the restaurant’s star rating.

add-on-screenshot-closed

Before expanding the actual inspections.

add-on-screenshot-opened

After. Note, don’t use this on any fast food restaurants you want to keep eating at. Taco Bell wasn’t chosen by accident.

This was my first time writing a Firefox Add-on and figuring out where to start turned out to be a little more complicated than I expected.  There are a couple of different ways to extend Firefox, and while Mozilla has some fantastic documentation, there were a lot more choices that needed to be made up front than I realized (such as do you use the Add-on builder vs. the Add-on SDK).  I decided to use the Add-on builder, Mozilla’s in-browser IDE for developing Add-ons that only need access to high level APIs.

Obviously this is still alpha software.  There’s bound to be bugs, and I can guarantee you that the inspection data could look prettier. If you do decide to give it a whirl, please let me know of any bugs you find on the issues page or via email.

Advertisements

1 Response to “Chicago Food Inspections Explorer”



  1. 1 Year in Review 2013 | A Stranger's Sojourn Trackback on January 5, 2014 at 9:26 PM

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s




Pages

Categories

October 2013
M T W T F S S
« Apr   Jan »
 123456
78910111213
14151617181920
21222324252627
28293031  

%d bloggers like this: