@squawk
    Preparing search index...

    Function fetchWindsAloft

    • Fetches a winds-aloft forecast (FD product) from the Aviation Weather Center text API and parses the response. The AWC endpoint returns a single bulletin per request; if the response body fails to parse, the parser error is thrown as-is (there are no partial-failure semantics as with multi-record endpoints).

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

      const { forecast } = await fetchWindsAloft({
      region: 'northeast',
      altitudeBand: 'low',
      forecastHours: 6,
      });
      console.log(forecast.altitudesFt); // [3000, 6000, 9000, 12000, ...]

      Parameters

      • options: FetchWindsAloftOptions = {}

        Optional region, altitude band, forecast horizon, abort signal, and base URL override.

      Returns Promise<FetchWindsAloftResult>

      The parsed forecast and the full raw response body.