leaflet-environmental-layers icon indicating copy to clipboard operation
leaflet-environmental-layers copied to clipboard

Add Layer: Washington State Tracking Network's Environmental Public Health Data

Open ebarry opened this issue 5 years ago • 9 comments

Please note we are preparing to participate in Google Code-in, and have reserved this issue for GCI participants - but we'd love to have your help with another one! Please check out https://code.publiclab.org to see more.

Source: https://www.doh.wa.gov/DataandStatisticalReports/EnvironmentalHealth/WashingtonTrackingNetworkWTN

(map view of information: https://fortress.wa.gov/doh/wtn/wtnibl/)

LEL Consists of a set of layers and in this task you will be adding a new layer.

Please refer to this for detailed steps and an example on how to add a layer https://github.com/publiclab/leaflet-environmental-layers/blob/master/CONTRIBUTING.md#adding-a-new-layer

ebarry avatar Nov 18 '19 20:11 ebarry

Published

SidharthBansal avatar Nov 28 '19 06:11 SidharthBansal

I cannot find any API documentation of the WSTN website (https://www.doh.wa.gov/DataandStatisticalReports/EnvironmentalHealth/WashingtonTrackingNetworkWTN). How do I go about it?

@ananyaarun @rexagod @jywarren @IshaGupta18

CodeSarthak avatar Dec 13 '19 17:12 CodeSarthak

Hi,

I mailed the WSTN and they have no direct implementation support. Thus, I don't think it is feasible to implement the same on LEL. image

CodeSarthak avatar Dec 17 '19 04:12 CodeSarthak

Hey @CodeSarthak , This is awesome to contact the data provider directly!!! Yes we can not get data through API but we can download CSV and converti it to JSON and host it somewhere and then implement LEL layer. This has been done in layer Unearthing:

https://github.com/publiclab/leaflet-environmental-layers/blob/0b646cc4ecf83626f7917d5225b95732e3989318/src/unearthing.js#L5

Thanks :)

sagarpreet-chadha avatar Dec 17 '19 04:12 sagarpreet-chadha

Thank you @sagarpreet-chadha for your help.

So, according to my understanding, I should get the csv data, convert it to JSON and then use the same code as in the leaflet-environmental-layers/src/unearthing.js file by replacing the link to my JSON file. Is this correct?

Also, how exactly do I 'host' the JSON file, on Public Lab itself?

Thank you.

CodeSarthak avatar Dec 17 '19 06:12 CodeSarthak

I have another suggestion for the implementation : https://fortress.wa.gov/doh/wtn/WTNPortal/#!q0=3646. WSTN already has maps with the required data. We can, instead, use their maps and embed them in our application. How does that sound?

Thank you.

CodeSarthak avatar Dec 17 '19 06:12 CodeSarthak

This is a good idea but if we embed their map directly we will not be able to use this map along with other LEL layers, right?

You can convert it to JSON and push this file to gh-pages branch of this repo (if you do not have permission then make a PR against gh-pages branch and then i will merge it).

Thanks!

sagarpreet-chadha avatar Dec 17 '19 08:12 sagarpreet-chadha

Cool. I will do that.

CodeSarthak avatar Dec 17 '19 09:12 CodeSarthak

@CodeSarthak are you still working on this? We could work together.

pythongiant avatar Dec 26 '19 16:12 pythongiant