@squawk
    Preparing search index...

    Type Alias WindProvider

    WindProvider: (lat: number, lon: number) => WindVector | undefined

    Resolves the wind at a geographic point for route timing. Returns the wind vector to apply, or undefined when no wind data is available (or the wind is light and variable), in which case the leg is timed as if calm.

    The provider takes only a position; bake the sampling altitude into the closure so this module stays altitude-agnostic.

    Type Declaration

      • (lat: number, lon: number): WindVector | undefined
      • Parameters

        • lat: number

          Latitude of the sample point in decimal degrees, positive north.

        • lon: number

          Longitude of the sample point in decimal degrees, positive east.

        Returns WindVector | undefined

        The wind vector to apply at the point, or undefined for calm.