@squawk
    Preparing search index...
    • Computes the great-circle distance in nautical miles between two geographic positions using the Haversine formula.

      Parameters

      • lat1: number

        Latitude of the first point in decimal degrees.

      • lon1: number

        Longitude of the first point in decimal degrees.

      • lat2: number

        Latitude of the second point in decimal degrees.

      • lon2: number

        Longitude of the second point in decimal degrees.

      Returns number

      Distance in nautical miles.