@squawk
    Preparing search index...

    Interface AirportSearchQuery

    Options for a fuzzy text search query against airport identifiers, names, and cities.

    interface AirportSearchQuery {
        limit?: number;
        minScore?: number;
        text: string;
        types?: ReadonlySet<FacilityType>;
    }
    Index

    Properties

    limit?: number

    Maximum number of results to return. Defaults to 20.

    minScore?: number

    Minimum match score (exclusive) in [0, 1] a result must reach. Defaults to 0, which keeps every match. Raise it to drop weak fuzzy matches.

    text: string

    Search text, matched fuzzily and case-insensitively against each airport's FAA ID, ICAO code, name, and city.

    types?: ReadonlySet<FacilityType>

    Optional set of facility types to include. When omitted, all types are included.