pittcsc / PantherView

Spring semester Open Data club project: PantherView
http://pittcsc.org/PantherView/
MIT License
24 stars 24 forks source link

Food data #21

Open vonbearshark opened 7 years ago

vonbearshark commented 7 years ago

Would be great to rope in the food inspection data! Map which restaurants receive subpar health reports. This info is on the WPRDC

vonbearshark commented 7 years ago

I think this is the dataset they were talking about: https://data.wprdc.org/dataset/allegheny-county-restaurant-food-facility-inspection-violations/resource/1a1329e2-418c-4bd3-af2c-cc334e7559af

vonbearshark commented 7 years ago

@brandonp728 want to take on this one, too? You already did most of the rest we had in mind, haha

brandonp728 commented 7 years ago

@vonbearshark absolutely!

Rahi374 commented 7 years ago

Could we add data for what food Market has for the day? Or would we run into an issue with CORS? Or is this not considered food data.

vonbearshark commented 7 years ago

@Rahi374 We definitely could try--does Market have an API we could hit? I don't know if there's a digitized endpoint for that. If there is we should create a new Issue for that!

Rahi374 commented 7 years ago

@vonbearshark There's no API but there's an HTML page from Panther Central that we could try to GET and process and spit out JSON. In my knowledge that would require a server. Is that not feasible?

vonbearshark commented 7 years ago

We could do that. That is actually very possible to do on the client, but it's something we were already considering for the PittAPI library and the server wrapper we're making for that: https://github.com/Pitt-CSC/PittAPI (wrapper: https://github.com/Pitt-CSC/PittAPIWebWrapper). @RitwikGupta : what do you think? Do you want to open an Issue for this in the PittAPI lib/wrapper? @Rahi374 are you familiar with Python? Do you want to be assigned to those Issues? Would be great to have.

Rahi374 commented 7 years ago

@vonbearshark Unfortunately I don't do Python. I have done what I described in Ruby though: https://github.com/Rahi374/jreast-train-info

vonbearshark commented 7 years ago

I think you will find Python to be very similar to Ruby; I think you should give it a shot!

Rahi374 commented 7 years ago

I think I'll give it a shot!

RitwikGupta commented 7 years ago

Please check the relevant issue at the PittAPI page: https://github.com/Pitt-CSC/PittAPI/issues/11. There are details on where to start hooking into Pitt dining hours data.

vonbearshark commented 7 years ago

@Rahi374 I sent you an invite to be a collaborator on that repo, if you accept I can assign you to that Issue. We have another member interested in helping, too

Rahi374 commented 7 years ago

@RitwikGupta @vonbearshark Got it. What's the difference between PittAPI and PittAPIWebWrapper?

vonbearshark commented 7 years ago

The PittAPI is a library for handling all the actual Pitt data, agnostic to the platform. The WebWrapper creates a website server so that when you make a request to an endpoint, we use the PittAPI to get the actual data

Rahi374 commented 7 years ago

@vonbearshark Okay I think I got it. Thanks!

vonbearshark commented 7 years ago

@Rahi374 How is this coming along? I think the PittAPI accommodate this food data stuff now!

Rahi374 commented 7 years ago

Oh oops I did the backend and forgot about the frontend :p Should I inplement the food safety data too or just the dining statuses?

vonbearshark commented 7 years ago

Just the dining statuses, I think. Unless you're feeling ambitious, haha