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

Update Netherlands adapter to use API #735

Open
sruti opened this issue May 20, 2020 · 4 comments · May be fixed by #751
Open

Update Netherlands adapter to use API #735

sruti opened this issue May 20, 2020 · 4 comments · May be fixed by #751
Labels
enhancement needs investigation Data source needs to be checked against requirements needs review

Comments

@sruti
Copy link
Contributor

sruti commented May 20, 2020

Netherlands data is available through an API https://api.luchtmeetnet.nl/open_api. With it we can:

  • get more accurate data (the current method is sometimes returning -999 when it shouldn't be)
  • programmatically access station data (including coordinates, local authority data provider, and even some metadata)
  • access stations reporting BC data others we may be missing
@gruijter
Copy link

thx. Already looked into it last year. Then the data interface was crappy then. Will look into it again and hope it is better.

@sruti
Copy link
Contributor Author

sruti commented May 30, 2020

Small update: confirmed with someone from luchtmeetnet that

  • the measurements are averaged hourly
  • the "timestamp_measured" parameter returned by the API is the start of the measurement period and we want the end, so an hour should be added (their website does this btw)

@magsyg magsyg linked a pull request Jun 20, 2020 that will close this issue
@majesticio majesticio added needs investigation Data source needs to be checked against requirements needs review and removed help wanted good for new contributors ready for dev labels Feb 3, 2023
@majesticio
Copy link
Contributor

This looks promising, I want to compare this to the data that we already have and check for duplicates.

@majesticio
Copy link
Contributor

Going to table this for now. I made a branch called 'lambda-netherlands'. I created a duplicate detector that returned this:

    parameterMatch: 'no2 µg/m³',
    distanceToNearest: '0.4 meters',
    original: {
      location: 'Groningen-Europaweg',
      coordinates: [ 53.2178, 6.5789 ],
      value: 29.5,
      date: '2023-02-13T19:00:00.000Z'
    },
    nearest: {
      location: 'Groningen-Europaweg',
      coordinates: [ 53.217796, 6.578901 ],
      value: 30.77,
      date: '2023-02-13T19:00:00.000Z'
    }
  },
  {
    parameterMatch: 'pm25 µg/m³',
    distanceToNearest: '0.5 meters',
    original: {
      location: 'Enschede-Winkelhorst.',
      coordinates: [ 52.2345, 6.91949 ],
      value: 17.0986,
      date: '2023-02-13T19:00:00.000Z'
    },
    nearest: {
      location: 'Enschede-Winkelshorst',
      coordinates: [ 52.234504, 6.919494 ],
      value: 16,
      date: '2023-02-13T19:00:00.000Z'
    }
  }
]
there are 83 stations with possible duplicates
there are 5 stations with no duplicates

While the values are slightly different (maybe due to a time offset problem) the stations are mostly reporting the same data from the same locations so it does not really enhance our coverage of the Netherlands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement needs investigation Data source needs to be checked against requirements needs review
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants