openaq / openaq-fetch

A tool to collect data for OpenAQ platform.
MIT License
85 stars 39 forks source link

UK DEFRA Data - seeking contact suggestions for SOS API #295

Open RocketD0g opened 7 years ago

RocketD0g commented 7 years ago

I'm seeking suggestions on a contact to confirm whether DEFRA's SOS API has a way to give latest measurements smoothly.

This convo started in a previous (now closed) issue when our scraper broke: https://github.com/openaq/openaq-fetch/issues/292

Below is from @jflasher, quoted from that thread:


Ok, DEFRA source (via scraping) should now be fixed. Did a quick look at the other two methods mentioned above as it'd be nice to use some other than scraping. A few quick observations.

Atom Feed

Unless I'm missing something, doesn't look like this would be a good alternative.

SOS API

This looks really promising, it should allows us to get the data via a RESTful API and consume JSON 💃 . The base url looks like https://uk-air.defra.gov.uk/sos-ukair/api/v1/. Did a quick check of stations and it reported back a whole bunch of things, which is great. There are coordinates. I'm unsure of how best to achieve our use case though. We don't want to have to query the system 500 times to get 3 pollutants from ~160 stations. Would be good to try and reach out to someone over there and see how to best handle that.

majesticio commented 1 year ago

I believe we may be able to use the api to enhance our DEFRA adapter using the docs. Since we already have an adapter this is low priority