@squawk
    Preparing search index...

    Interface AirspaceResolver

    Stateless resolver exposing airspace query methods.

    interface AirspaceResolver {
        byAirport(
            identifier: string,
            types?: ReadonlySet<AirspaceType>,
        ): AirspaceFeature[];
        query(query: AirspaceQuery): AirspaceFeature[];
    }
    Index

    Methods

    • Returns every airspace feature associated with the given identifier, independent of position or altitude. Lookup is case-insensitive.

      For Class B/C/D/E2 airspace, the feature identifier is the associated airport's FAA location identifier (e.g. "JFK" for the NY Class B). For Special Use Airspace, it is the NASR designator (e.g. "R-2508"). Pass only the bare identifier - ICAO-prefixed codes like "KJFK" will not match; resolve to an FAA ID first via @squawk/airports if needed.

      Parameters

      • identifier: string

        FAA identifier or NASR designator.

      • Optionaltypes: ReadonlySet<AirspaceType>

        Optional type filter. Only features whose type is in this set are returned. When omitted, all types are returned.

      Returns AirspaceFeature[]

      All features whose identifier matches, or an empty array.

    • Returns every airspace feature whose lateral polygon contains the given position and whose vertical bounds contain the given altitude.

      Parameters

      • query: AirspaceQuery

        Position, altitude, and optional type filter.

      Returns AirspaceFeature[]

      All matching features, in no particular order.