0.9.1 • Published 11 months ago

uk-river-data v0.9.1

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

UK River Data

Access level, flow and other data for UK rivers and other watercourses.

Quick start: browser

Download from CDN:

<script src="https://cdn.jsdelivr.net/npm/uk-river-data@0.9"></script>

Example usage:

const floodApi = new UkRiverData.FloodApi();
// Get the last 7 days readings from the flow guage at Kingston.
const readings = await floodApi.fetchMeasureReadings(
  '3400TH-flow--i-15_min-m3_s'
  { since: new Date(Date.now() - 86400 * 7)}
);

Quick start: Node JS

Install the package:

$ npm i uk-river-data

Example usage:

import { FloodApi } from 'uk-river-data';
const floodApi = new FloodApi();
// Get the last 7 days readings from the flow guage at Kingston.
const readings = await floodApi.fetchMeasureReadings(
  '3400TH-flow--i-15_min-m3_s'
  { since: new Date(Date.now() - 86400 * 7)}
);
0.9.1

11 months ago

0.9.0

12 months ago