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

    Interface StructureData

    The answer of getStructureData.

    interface StructureData {
        columnNumbers?: Record<string, number>;
        footnote?: string;
        level: AreaType;
        name: string;
        values: Record<string, string>;
        wahlkreis: string;
    }
    Index
    columnNumbers?: Record<string, number>

    Each value's column number (column name -> number), as the file numbers its columns: the footnote names columns by these numbers ("In den Spalten 1, 7 bis 14 …"). Left out when the file has no "Spalten-Nr." row.

    footnote?: string

    The file's footnote: where a city or Kreis forms several Wahlkreise, many columns hold the value for the whole city, so those Wahlkreise can't be ranked against each other.

    level: AreaType

    What the row is about: a Wahlkreis, a Land (its summary row, "Land insgesamt") or the Bund ("Insgesamt"). The summary rows are the published figures for a Land or Germany; summing Wahlkreise double-counts where a city's Wahlkreise repeat the city-wide value.

    name: string
    values: Record<string, string>

    Column name -> value, as the file has them (German decimal comma kept: "128,0").

    wahlkreis: string

    The row's number: a Wahlkreis (1–299), a Land's summary row (901–916), the Bund's (999).