Hey guys! Just deployed my latest creation!
Search for you favorite restaurant and see if it gets a passing grade. Optionally, you can check the latest violation and see if your OCD will win over your desire for delicious food.
I used the Socrata API to query NYC Open Data which allowed me to look at restaurant grades and look at recent violations. It was pretty straightforward but the query strings got a little tricky. The difficult part was getting only results that included a grade so that I could display the right grade.
Socrata ues SOQL so I’m sure there’s a way to get my results that are unique and also have the latest grade, but for now I’m handling the unique results in the client.
Possible upgrades would be to plot the graded restaurants on a map so you can visualize the A B C’s for NYC =)
Leave a Reply