wasm-spatial-core
    Preparing search index...

    Function midpoint

    • Calculate the midpoint between two WGS-84 points on the great circle.

      Arguments

      • lng1: Longitude of point 1 in degrees.
      • lat1: Latitude of point 1 in degrees.
      • lng2: Longitude of point 2 in degrees.
      • lat2: Latitude of point 2 in degrees.

      Returns Float64Array [lng, lat] of the midpoint.

      Parameters

      • lng1: number
      • lat1: number
      • lng2: number
      • lat2: number

      Returns Float64Array