@squawk
    Preparing search index...

    Function parseFaaNotam

    • Parses a raw FAA domestic (legacy) format NOTAM string into a structured FaaNotam object.

      Handles both sub-formats:

      • NOTAM D (facility-issued): !ATL 03/296 ATL NAV ILS RWY 08L IM U/S 2603181657-2711082111EST
      • FDC: !FDC 5/3374 ATL IAP HARTSFIELD/JACKSON ATLANTA INTL, ATLANTA, GA. [body] 2512021812-2712021809EST

      The parser extracts the accountability, NOTAM number, location code, keyword, body text, and effective period. For FDC NOTAMs, it additionally extracts the airport name and city/state location.

      import { parseFaaNotam } from '@squawk/notams';

      const notam = parseFaaNotam(
      '!BOS 04/084 BOS TWY C APN SIGN LGT U/S 2604040835-2605092359'
      );
      console.log(notam.accountability); // "BOS"
      console.log(notam.classification); // "NOTAM_D"
      console.log(notam.keyword); // "TWY"
      console.log(notam.text); // "C APN SIGN LGT U/S"

      Parameters

      • raw: string

        The raw FAA domestic NOTAM string to parse.

      Returns FaaNotam

      A parsed FaaNotam object.

      If the string cannot be parsed as a valid FAA domestic NOTAM.