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

Add NI Water Quality Sample Data #1006

Closed
andrewbolster opened this issue Dec 30, 2023 · 3 comments
Closed

Add NI Water Quality Sample Data #1006

andrewbolster opened this issue Dec 30, 2023 · 3 comments

Comments

@andrewbolster
Copy link
Owner

NI Water has a per-postcode query UI for HTML-tabular (and human understandable) water quality data.
image

There should be a way to (kindly) bulk query these in the most efficient (i.e. not involving 50k queries).

There are also "predictable" report links included in this output that can reference the more detailed data available.

Should be able to get a querable dataframe for presented factors such as 'NI Hardness Classification'

@andrewbolster
Copy link
Owner Author

Can get the PostCode to Water Supply Zone mapping from here, so that drops the query space from 50k to 56. That'll do. But you don't get the nice table UI out of that...

@andrewbolster
Copy link
Owner Author

So... turns out that the query on that page is

https://www.niwater.com/water-quality-lookup.ashx?p=BT71RY

However... after a little manual enumeration, using the z query parameter appears to work directly

https://www.niwater.com/water-quality-lookup.ashx?z=ZS0107

@andrewbolster
Copy link
Owner Author

Got hardness
image
Will update with PR later!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant