@squawk
    Preparing search index...

    Function fetchInternationalSigmets

    • Fetches all currently active international (ICAO-format) SIGMETs from the Aviation Weather Center and parses each bulletin.

      The AWC isigmet endpoint does not include SIGMETs issued by the United States in domestic format; use fetchSigmets for those. Multiple SIGMETs come back concatenated in one response body, each prefixed with a Hazard: X line and separated by a line of dashes. These AWC-specific wrappers are stripped before each bulletin is parsed, so the bodies reaching parseSigmet are standard ICAO-format SIGMET bulletins.

      import { fetchInternationalSigmets } from '@squawk/weather/fetch';

      const { sigmets } = await fetchInternationalSigmets();
      for (const sigmet of sigmets) {
      if (sigmet.format === 'INTERNATIONAL') {
      console.log(sigmet.firCode, sigmet.phenomena);
      }
      }

      Parameters

      Returns Promise<FetchInternationalSigmetsResult>

      The parsed SIGMETs, any per-bulletin parse errors, and the raw body.