@squawk
    Preparing search index...

    Function createNavaidResolver

    • Creates a stateless navaid resolver. The resolver accepts an array of Navaid records at initialization (typically from @squawk/navaid-data) and returns an object with methods for looking up navaids by identifier, frequency, proximity, type, or name search.

      The resolver builds internal indexes at creation time for fast lookups by identifier. Proximity, frequency, and text searches iterate over the full dataset.

      import { usBundledNavaids } from '@squawk/navaid-data';
      import { createNavaidResolver } from '@squawk/navaids';

      const resolver = createNavaidResolver({ data: usBundledNavaids.records });

      const bos = resolver.byIdent('BOS');
      const nearby = resolver.nearest({ lat: 42.3656, lon: -71.0096 });
      const vors = resolver.byType(new Set(['VOR', 'VORTAC']));

      Parameters

      Returns NavaidResolver