Feed NYC, a mobile Web app and RESTful API, for New York City’s food insecure population won Judge’s Pick (top prize) tonight in the Reinvent 311: Mobile Content Challenge hosted by NYC 311, Code for America Brigade, and Stack Exchange. Thanks to them for inviting me, and welcoming me back for lunch.1
My presentation could have used a little more polish (who still uses PowerPoint?, why do they have a 4:3 projector?). I also had my notes written on a napkin. But I think having a very functional demo with a clean UI and straightforward UX helped. The API and frameworks are fast enough that you don’t feel you’re relegated to just a Web app.
My designer colleague Lydia White suggested she’d be open to building something with me next time. (With her, we’d be shooting fish in a tea cup.)
Mobile Web app
The RESTful API is hosted on Heroku at: https://feednyc.herokuapp.com. It was built using Python 3.3 with Flask, Beautiful Soup, and SQLite. It responds with JSON and is cross-origin compatible. There are three
You can use the following query strings:
hour_start=1430&hour_end=1500 (“human readable” format,
1430 is 2:30 p.m.),
days=4 (bitwise-designated day of week,
1 is for Sunday),
0 is food pantry,
1 is soup kitchen,
2 is senior center).
In a nod to the StackExchange API, the
/providers response is paginated and will return a
has_more key with a boolean value. You can use
pagesize query string parameters.