uk-river-data
TypeScript icon, indicating that this package has built-in type declarations

0.9.1 • Public • Published

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)}
);

Package Sidebar

Install

npm i uk-river-data

Weekly Downloads

1

Version

0.9.1

License

MIT

Unpacked Size

44.2 kB

Total Files

27

Last publish

Collaborators

  • pbuk