I'm a Web Developer and Entrepreneur out of Washington DC.

DC Open311 API – Ruby Gem

Posted: June 6th, 2009 | Author: Zvi | Filed under: DC, Development, Geekery | 5 Comments »

Background: The DC government is exposing an API for their 311 call center, to allow application developers to build open source tools to make it easier for citizens to submit issues. As part of it, they and iStrategyLabs have launched a second Apps for Democracy contest. The creative juices are flowing, and I have a few ideas I plan on implementing.

But first things first… in order to make it even easier for myself and for other developers, I built out a ruby gem that interacts with the Open311 and Geolocation API. I know I’m helping out my competition, but it’s all for the better good, right? Here you go:

http://projects.skeevisarts.com/code/DCGOV-0.0.1.gem

You can also grab it from github: http://github.com/skeevis/dcgov/tree/master

Download and install it, and you should be set. It’s fully tested using rspec, so just open up the spec folder and you’ll be able to exavtly how it works. I’ll eventually add this to rubyforge, but for now you can take the extra step :-)

DC OCTO has a ways to go. The API is supposed to launch on July 1st, but they certainly have a lot more to do with the API, both in terms of development and documentation. The Geolocation API seems to be pretty solid. The 311 API has unimplemented (stubbed) functions, spelling mistakes in variable names, no error handling, and no documentation (the “submit” function, the most important, is a total mystery). It’s too bad that people will find this when they head to the CodeJam over the weekend, but oh well.

Good luck to everyone else!


5 Comments on “DC Open311 API – Ruby Gem”

  1. 1 Luigi Montanez said at 9:02 am on June 6th, 2009:

    Really awesome. Can’t wait to kick the tires on this.

  2. 2 Steven Haddox said at 10:21 am on June 6th, 2009:

    Thanks for sharing. Even though I missed the Open Apps festivities I’ll try and still make use of this!

  3. 3 Round 1 Submission Instructions | Apps for Democracy said at 12:38 pm on June 6th, 2009:

    [...] Two client libraries have been created by @skeevis (a Ruby Gem) and @technosailor (a PHP library) for all to enjoy. Please consider contributing back to the DC [...]

  4. 4 Zvi said at 7:20 pm on June 6th, 2009:

    Glad you all plan on using it. Let me know how I can help, or if you’d like to help out!

  5. 5 Atomist said at 11:03 pm on August 20th, 2009:

    Wow octolabs that just made my day and honestly changed my view of octo a bit. Then again I used to love working with the Octo GIS guy’s but sadly most of my work surrounded the dark side where mid-project all of the sudden my project was taken over and in such a way well. I’m sparing the details. But that was in the s.peck days so who knows.

    Anyways I came across this which might be way cooler than my Rubington wrapper to the citizenatlas webservice.
    I’m about to commit it on github if you want to check it out http://github.com/atomist/rubington/tree/master

    Anyways big ups octo I’m currently at 1350 Penn 2 times a week so working on vmware and writing a intranet in rails for the council.


Leave a Reply