openaq / openaq-fetch

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

Fetch Dutch locations dynamically #22

Closed RocketD0g closed 1 year ago

RocketD0g commented 8 years ago

Originally created by @olafveerman : Coordinates for the Dutch stations are hard-coded in the adapter: https://github.com/openaq/openaq-api/blob/master/adapters/netherlands.js#L98

Instead, they should/could be parsed from: http://www.lml.rivm.nl/meetnet/index.php

RocketD0g commented 8 years ago

Halt on this issue for now: investigating possible lead on open EU AQ API.

dolugen commented 6 years ago

Instead, they should/could be parsed from: http://www.lml.rivm.nl/meetnet/index.php

Any idea how to parse the map? I don't know how to access the marker data.

jflasher commented 6 years ago

If you view source on the page, you see a bunch of addMarker() functions that look like below, I think that'd do it?

addMarker(51.5475, 5.8382, 'Zuid', '<div id=lml_info><div id=lml_naam>NL10243<br>De Rips-Blaarpeelweg</div><table><tr><td width=25% class=lml_omschrijving>eigenaar<td class=lml_omschrijving>RIVM<tr><td width=25% class=lml_omschrijving>zone<td class=lml_omschrijving>Zuid<tr><td width=25% class=lml_omschrijving>co&ouml;rdinaten<td class=lml_omschrijving>51.5475, 5.8382<tr><td width=25% class=lml_omschrijving>componenten<td class=lml_omschrijving>NH3&nbsp;&nbsp;PM10&nbsp;&nbsp;</table><a href=../histo/index.php?stat=NL10243>naar de metingen van dit meetpunt</a></div>', '<div class=tooltip>De Rips-Blaarpeelweg</div>');