@squawk
    Preparing search index...

    Interface AirwayResolver

    A stateless resolver providing airway lookup and traversal methods.

    interface AirwayResolver {
        byDesignation(designation: string): Airway[];
        byFix(ident: string): AirwayByFixResult[];
        expand(
            designation: string,
            entryFix: string,
            exitFix: string,
        ): AirwayExpansionResult | undefined;
        search(query: AirwaySearchQuery): AirwaySearchResult[];
    }
    Index
    • Looks up airways by designation (e.g. "V16", "J60", "Q1"). Multiple airways can share the same designation in different regions (e.g. V16 exists in both the contiguous US and Hawaii). Case-insensitive. Returns an empty array if no match is found.

      Parameters

      • designation: string

      Returns Airway[]

    • Expands an airway between two fixes, returning the ordered sequence of waypoints from the entry fix to the exit fix (inclusive).

      Airways can be traversed in either direction. When the entry fix appears after the exit fix in the stored waypoint order, the returned waypoints are reversed so they always run entry-to-exit.

      The result also lists any published gap the expansion crosses, taken from the discontinued flag the FAA sets on the waypoint after which an airway is discontinued, and any unusable segment, taken from the unusable flag on the waypoint that starts it. The expansion still returns every waypoint between the two fixes, so callers decide how to treat a gap or an unusable segment.

      Matches waypoint identifiers case-insensitively. Returns undefined if either fix is not found on the airway.

      Parameters

      • designation: string
      • entryFix: string
      • exitFix: string

      Returns AirwayExpansionResult | undefined