@squawk
    Preparing search index...

    Interface FetchWindsAloftOptions

    Options accepted by fetchWindsAloft.

    interface FetchWindsAloftOptions {
        altitudeBand?: WindsAloftAltitudeBand;
        baseUrl?: string;
        forecastHours?: WindsAloftForecastHours;
        region?: WindsAloftRegion;
        signal?: AbortSignal;
    }

    Hierarchy (View Summary)

    Index

    Properties

    altitudeBand?: WindsAloftAltitudeBand

    Altitude band. When omitted, the AWC API applies its own default.

    baseUrl?: string

    Override the AWC base URL. Defaults to DEFAULT_AWC_BASE_URL.

    This is the supported seam for browser use. The AWC API does not send CORS headers, so a direct cross-origin fetch from a browser is blocked by the user agent. Point baseUrl at a same-origin proxy you control (a reverse proxy or an edge function that forwards to AWC and returns the upstream body) and the fetch* functions work unchanged from the browser. It is equally useful for pointing at a mirror during development.

    forecastHours?: WindsAloftForecastHours

    Forecast horizon in hours from the issue time. When omitted, the AWC API applies its own default.

    Geographic region. When omitted, the AWC API applies its own default.

    signal?: AbortSignal

    AbortSignal used to cancel the underlying HTTP request.