"use strict";Object.defineProperty(exports, "__esModule", {value: true});// index.ts
var _bearing = require('@turf/bearing');
var _destination = require('@turf/destination');
var _distance = require('@turf/distance');
function midpoint(point1, point2) {
  const dist = _distance.distance.call(void 0, point1, point2);
  const heading = _bearing.bearing.call(void 0, point1, point2);
  const midpoint2 = _destination.destination.call(void 0, point1, dist / 2, heading);
  return midpoint2;
}
var turf_midpoint_default = midpoint;



exports.default = turf_midpoint_default; exports.midpoint = midpoint;
//# sourceMappingURL=index.cjs.map