uk-river-data
v0.9.1
Published
Access level, flow and other data for UK rivers and other watercourses.
Downloads
28
Maintainers
Readme
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/[email protected]"></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)}
);