openaq-fetch icon indicating copy to clipboard operation
openaq-fetch copied to clipboard

Bermuda shows up on OpenAQ Map for AQ data when there are no data

Open RocketD0g opened this issue 5 years ago • 3 comments

Currently, OpenAQ is reporting data from the country of Bermuda.

This is in error - the data are really coming from Rangoon, Myanmar.

It looks like the Airnow Monitoring Site Location file located here has the incorrect country code form Myanmar (BM instead of the correct MM).

Screen Shot 2020-02-10 at 1 35 57 PM

I've reported the issue to AirNow. (But note, this doesn't resolve the issue here, which describes both AirNow and StateAir adapters overlapping in non-US data sources.

RocketD0g avatar Feb 10 '20 18:02 RocketD0g

Wow, I got a reply back from EPA AirNow and they've already fixed it...in two hours!

Can confirm it is corrected by looking here too.

RocketD0g avatar Feb 10 '20 20:02 RocketD0g

Unfortunately, AirNow notified me that they've now changed the country code back to what appears as the ISO two-letter country code for Bermuda (and changed the two-letter code for several countries - see below). This is because they are actually using FIPS (a US federal two-letter code for countries) instead of ISO.

Here was the reply from AirNow:

The CountryCode field follows FIPS formatting, and that is set to BG for Bangladesh, which is the correct 2 digit FIPS code (BD is the ISO country code for Bangladesh). I also reviewed the rest of our country codes. There were a few that were incorrectly using ISO country codes, and one that was incorrect entirely. Here are the changes Vietnam from VN to VM (FIPS) Myanmar from MM (ISO) back to BM (FIPS). This was the original request in this ticket. Gabon from GA (ISO) to GB (FIPS) Ivory Coast from CI (ISO) to IV (FIPS) Guinea from GN (ISO) to GV (FIPS)

Side note: We may want to make the AirNow adapter no longer accept non-US, Mexico gov, and Canadian gov data and rely on StateAir for US diplomatic data? Seems kind of janky, but this would also resolve #671.

This also affects issue #680.

RocketD0g avatar Feb 13 '20 10:02 RocketD0g

That's great to know. Should be simple to address with a converter based on something like: https://www.npmjs.com/package/country-code-lookup

olafveerman avatar Feb 13 '20 11:02 olafveerman

We are working on a geocoding solution to the country code problem

majesticio avatar Feb 03 '23 23:02 majesticio