2.0.2 • Published 9 months ago

pegelonline-api-client v2.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
9 months ago

pegelonline-api-client

A wrapper for the Pegelonline API. The API Endpoint is free of charge and can be used without registration. The API provided data about water levels, water temperatures and discharge rates of rivers in Germany. The data is provided by the Federal Waterways and Shipping Administration (WSV).

The wrapper is written in Typescript and can be used in Node.js and in the browser.

Installation

npm install pegelonline-api-client

Usage

Node.js

const PegelonlineApi = require('pegelonline-api-client').PegelOnlineApiClient;
const api = new PegelOnlineApiClient();

const station = await api.getStationDetails('c0ec139b-13b4-4f86-bee3-06665ad81a40');

Browser

import { PegelOnlineApiClient } from 'pegelonline-api-client';
const api = new PegelOnlineApiClient();

const station = await api.getStationDetails('c0ec139b-13b4-4f86-bee3-06665ad81a40');
2.0.2

9 months ago

2.0.1

11 months ago

2.0.0

11 months ago

1.0.0

11 months ago