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

    Interface QueryOptions

    Options for a data query.

    interface QueryOptions {
        fields?: string[];
        indicator: string;
        level?: string;
        region?: string;
        year?: number;
    }
    Index
    fields?: string[]

    Client-side field projection: keep only these value fields. Needs at least one non-blank name; blank entries next to real names are dropped.

    indicator: string

    Indicator code (AI002-1-5) or table form (ai002_1_5); resolved against the catalogue.

    level?: string

    Geo level: a friendly name (land, kreis, …) resolved to a typ. Defaults to DEFAULT_LEVEL (land) when omitted (undefined or null).

    region?: string

    Client-side region filter (not blank): an AGS (numeric; leading zeros ignored, and a key padded with zeros, such as the official 8-digit key of a kreisfreie Stadt, matches the shorter key the level carries), or a name — rows whose whole name equals it when there are any, else every row whose name contains it. See matchRegion, and QueryResult.region for how it matched.

    year?: number

    Year; defaults to the indicator's newest catalogue year. The data host may not have loaded that year yet, in which case the query returns no rows.