@squawk
    Preparing search index...

    Function createProcedureResolver

    • Creates a stateless procedure resolver. The resolver accepts an array of Procedure records at initialization (typically from @squawk/procedure-data) and returns an object with query methods.

      The resolver builds internal indexes at creation time for fast lookup by identifier, by airport, by (airport, identifier), by type, and by approach type.

      import { usBundledProcedures } from '@squawk/procedure-data';
      import { createProcedureResolver } from '@squawk/procedures';

      const resolver = createProcedureResolver({ data: usBundledProcedures.records });

      const allSardi = resolver.byIdentifier('SARDI1');
      const denAalle = resolver.byAirportAndIdentifier('KDEN', 'AALLE4');
      const jfkApproaches = resolver.byAirport('KJFK').filter((p) => p.type === 'IAP');
      const jfk04LApproaches = resolver.byAirportAndRunway('KJFK', '04L');
      const allIls = resolver.byApproachType('ILS');
      const expanded = resolver.expand('KDEN', 'AALLE4', 'BBOTL');

      Parameters

      Returns ProcedureResolver