@squawk
    Preparing search index...
    • Computes the great-circle midpoint between two geographic positions. The midpoint is the point on the great-circle arc that is equidistant from both endpoints.

      For antipodal inputs the midpoint is mathematically underdetermined (any meridian is valid); the function still returns a finite, deterministic result rather than throwing. Output longitude is normalized to the range [-180, 180]; points on the antimeridian may be represented with either sign.

      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 Coordinates

      Midpoint coordinates in decimal degrees.