@maschinenlesbar.org/strahlenschutz-cli
    Preparing search index...

    Class StrahlenschutzClient

    Index
    • The latest reading for a single station by its kenn id. The WFS answers an unknown kenn with an empty FeatureCollection (HTTP 200), never a 404, so an empty result here means the station does not exist: it rejects with StrahlNotFoundError. (latest({ station }) and timeseries() pass an empty collection through, since a real station can have no readings in a series.)

      Parameters

      • kenn: string

      Returns Promise<FeatureCollection>

    • The hourly (default) or daily time series for a single station. A resolution outside TimeseriesResolutionValues (latest included) is a StrahlValidationError before any request.

      Parameters

      • kenn: string
      • resolution: "ts-1h" | "ts-24h" = "ts-1h"
      • query: FeatureQuery = {}

      Returns Promise<FeatureCollection>