@maschinenlesbar.org/pegel-online-cli
    Preparing search index...

    Type Alias StationListNote

    StationListNote:
        | {
            filter: "ids"
            | "waters"
            | "fuzzyId";
            kind: "unmatched";
            value: string;
        }
        | { kind: "ambiguous"; name: string; stations: StationChoice[] }

    What stationListNotes reports about a stations.list result: a filter value that matched no station, or a name that more than one returned station carries.

    Type Declaration

    • { filter: "ids" | "waters" | "fuzzyId"; kind: "unmatched"; value: string }
    • { kind: "ambiguous"; name: string; stations: StationChoice[] }
      • kind: "ambiguous"
      • name: string

        The shortname two or more returned stations share (e.g. "NEUSTADT").

      • stations: StationChoice[]

        Those stations, to pick one by its unambiguous uuid or number.