@squawk
    Preparing search index...
    • Asynchronously loads, decompresses, and parses the bundled airport dataset. Returns the same AirportDataset shape as the Node entry point exports as usBundledAirports.

      Handles servers that advertise transport-level gzip via Content-Encoding: gzip (in which case fetch() decodes the body automatically) as well as servers that serve the .gz as opaque bytes.

      import { loadUsBundledAirports } from '@squawk/airport-data/browser';
      import { createAirportResolver } from '@squawk/airports';

      const dataset = await loadUsBundledAirports();
      const resolver = createAirportResolver({ data: dataset.records });

      To host the asset on your own CDN or to override the URL for any other reason, pass an explicit url:

      const dataset = await loadUsBundledAirports({
      url: 'https://your-cdn.example/airports.json.gz',
      });

      Parameters

      Returns Promise<AirportDataset>