Calculate the midpoint between two WGS-84 points on the great circle.
lng1
lat1
lng2
lat2
Returns Float64Array [lng, lat] of the midpoint.
Float64Array
[lng, lat]
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.