@squawk
    Preparing search index...

    Interface NavaidResolver

    A stateless resolver providing navaid lookup methods.

    interface NavaidResolver {
        byFrequency(query: NavaidFrequencyQuery): Navaid[];
        byIdent(ident: string): Navaid[];
        byIdentAtPosition(
            ident: string,
            lat: number,
            lon: number,
            toleranceNm?: number,
        ): Navaid | undefined;
        byType(types: ReadonlySet<NavaidType>): Navaid[];
        nearest(query: NearestNavaidQuery): NearestNavaidResult[];
        search(query: NavaidSearchQuery): NavaidSearchResult[];
    }
    Index

    Methods

    • Looks up navaids by identifier (e.g. "BOS", "JFK"). Multiple navaids can share the same identifier (e.g. an NDB and a VOR). Returns an empty array if no match is found.

      Parameters

      • ident: string

      Returns Navaid[]

    • Looks up the single navaid sharing the given identifier that lies nearest to a geographic position. Multiple navaids can publish the same identifier (a co-located NDB and VOR/DME, or two stations far apart that reuse a code); this disambiguates them by proximity to a known point such as a map-click location or an adjacent route waypoint.

      Returns the nearest matching navaid by great-circle distance. When toleranceNm is provided, matches farther than that distance are excluded and the method returns undefined if none qualify. When toleranceNm is omitted, the nearest match is returned regardless of distance. Returns undefined when no navaid carries the identifier.

      Parameters

      • ident: string

        Navaid identifier (case-insensitive).

      • lat: number

        Latitude of the reference position in decimal degrees (WGS84).

      • lon: number

        Longitude of the reference position in decimal degrees (WGS84).

      • OptionaltoleranceNm: number

        Optional maximum great-circle distance in nautical miles. When omitted, the nearest match wins regardless of distance.

      Returns Navaid | undefined

      The nearest matching navaid, or undefined when none match or none fall within toleranceNm.