PantherView icon indicating copy to clipboard operation
PantherView copied to clipboard

Food data

Open vonbearshark opened this issue 8 years ago • 18 comments

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

vonbearshark avatar Jan 23 '17 03:01 vonbearshark

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 avatar Jan 24 '17 18:01 vonbearshark

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

vonbearshark avatar Jan 29 '17 16:01 vonbearshark

@vonbearshark absolutely!

brandonp728 avatar Jan 30 '17 00:01 brandonp728

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.

Rahi374 avatar Jan 31 '17 03:01 Rahi374

@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!

vonbearshark avatar Jan 31 '17 03:01 vonbearshark

@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?

Rahi374 avatar Jan 31 '17 14:01 Rahi374

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.

vonbearshark avatar Jan 31 '17 14:01 vonbearshark

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

Rahi374 avatar Jan 31 '17 14:01 Rahi374

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

vonbearshark avatar Jan 31 '17 14:01 vonbearshark

I think I'll give it a shot!

Rahi374 avatar Jan 31 '17 14:01 Rahi374

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.

RitwikGupta avatar Jan 31 '17 16:01 RitwikGupta

@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

vonbearshark avatar Jan 31 '17 17:01 vonbearshark

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

Rahi374 avatar Jan 31 '17 18:01 Rahi374

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

vonbearshark avatar Jan 31 '17 19:01 vonbearshark

@vonbearshark Okay I think I got it. Thanks!

Rahi374 avatar Feb 01 '17 04:02 Rahi374

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

vonbearshark avatar Apr 01 '17 14:04 vonbearshark

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?

Rahi374 avatar Apr 01 '17 20:04 Rahi374

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

vonbearshark avatar Apr 01 '17 20:04 vonbearshark