@squawk
    Preparing search index...

    Interface FixResolver

    A stateless resolver providing fix lookup methods.

    interface FixResolver {
        byIdent(ident: string): Fix[];
        byIdentAtPosition(
            ident: string,
            lat: number,
            lon: number,
            toleranceNm?: number,
        ): Fix | undefined;
        nearest(query: NearestFixQuery): NearestFixResult[];
        search(query: FixSearchQuery): FixSearchResult[];
    }
    Index

    Methods

    • Looks up fixes by identifier (e.g. "MERIT", "BOSCO"). Multiple fixes can share the same identifier in different ICAO regions. Returns an empty array if no match is found.

      Parameters

      • ident: string

      Returns Fix[]

    • Looks up the single fix sharing the given identifier that lies nearest to a geographic position. The same fix identifier can be published in more than one ICAO region; this disambiguates the collision by proximity to a known point such as a map-click location or an adjacent route waypoint.

      Returns the nearest matching fix 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 fix carries the identifier.

      Parameters

      • ident: string

        Fix 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 Fix | undefined

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