Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aggregate doesn't seem to work #29

Open
domoritz opened this issue Aug 23, 2024 · 0 comments
Open

Aggregate doesn't seem to work #29

domoritz opened this issue Aug 23, 2024 · 0 comments

Comments

@domoritz
Copy link

https://api.smellpittsburgh.org/api/v2/smell_reports?region_ids=1&start_time=1724385600&aggregate=True

returns

[{"latitude":40.4362,"longitude":-79.9174,"smell_value":5,"smell_description":null,"feelings_symptoms":null,"additional_comments":null,"zip_code_id":7,"observed_at":1724387085,"zipcode":"15217"},{"latitude":40.4393,"longitude":-79.8935,"smell_value":4,"smell_description":null,"feelings_symptoms":null,"additional_comments":null,"zip_code_id":20,"observed_at":1724392639,"zipcode":"15221"},{"latitude":40.522,"longitude":-80.1672,"smell_value":4,"smell_description":"Diesel exhaust ","feelings_symptoms":null,"additional_comments":null,"zip_code_id":88,"observed_at":1724408296,"zipcode":"15108"},{"latitude":40.2916,"longitude":-79.9029,"smell_value":2,"smell_description":"Burning coal","feelings_symptoms":null,"additional_comments":null,"zip_code_id":45,"observed_at":1724409462,"zipcode":"15025"},{"latitude":40.3003,"longitude":-80.0608,"smell_value":5,"smell_description":"Industrial ","feelings_symptoms":"Can’t breathe outside ","additional_comments":null,"zip_code_id":107,"observed_at":1724412233,"zipcode":"15102"},{"latitude":40.3022,"longitude":-80.0601,"smell_value":5,"smell_description":"SAME POISON GAS FILLING OUR HOMES AND LUNGS. USS/NIPPON SAME TOXIC POISON HYDROGEN SULFIDE STINK AS BEFORE. EMPTY PROMISES. ","feelings_symptoms":"Asphyxiation, disgust. Baby coughing. Back to ER. ","additional_comments":"This is too much AGAIN. No wind to disperse. SHUT THEM DOWN. ","zip_code_id":107,"observed_at":1724412379,"zipcode":"15102"},{"latitude":40.3414,"longitude":-79.9684,"smell_value":3,"smell_description":"Rotten eggs","feelings_symptoms":"Irritated sinus ","additional_comments":"Little hazy. Could be smoke at light fog. ","zip_code_id":33,"observed_at":1724412796,"zipcode":"15236"},{"latitude":40.3226,"longitude":-79.931,"smell_value":4,"smell_description":"Clariton coke plant ","feelings_symptoms":"Headache and burning eyes and sinuses","additional_comments":"This f*ck*ng place woke me up around 2:30/3 this morning it was so bad. Does reporting even do anything?!? It seems like it doesn’t and they just do whatever they want. This place is killing us!","zip_code_id":45,"observed_at":1724413277,"zipcode":"15025"},{"latitude":40.5271,"longitude":-79.854,"smell_value":5,"smell_description":"Seeage","feelings_symptoms":"Asthma, gagging.can’t breath","additional_comments":null,"zip_code_id":3,"observed_at":1724413620,"zipcode":"15238"},{"latitude":40.3361,"longitude":-79.9597,"smell_value":4,"smell_description":"Rotten eggs ","feelings_symptoms":"Eye irritation ","additional_comments":null,"zip_code_id":33,"observed_at":1724415687,"zipcode":"15236"},{"latitude":40.4241,"longitude":-79.9212,"smell_value":4,"smell_description":"Eggy, rotty","feelings_symptoms":null,"additional_comments":null,"zip_code_id":7,"observed_at":1724415899,"zipcode":"15217"}]

even though I was expecting to just get a number.

I'm following https://github.com/CMU-CREATE-Lab/smell-pittsburgh-rails/wiki/Smell-PGH-API#api-endpoints.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant