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

    Function getUnit

    • One unit by its MaStR number, read: the prefix names the category (SEE/SSE/EEG/KWK electricity generation, SVE consumption, GEE gas generation and storage, GVE gas consumption), the number is looked up with the register's filter (there is no by-id endpoint). An installation number (EEG, KWK) that covers several units is ambiguous with them; no match is empty naming the number and the dataset searched. Another kind of number (an operator's ABR…, a location) is a validation error saying how to search for it.

      Parameters

      Returns Promise<UnitRecord>