import { lineString as turfLineString } from "@turf/helpers";
const getStraightLineFeatures = (path, featureProperties) => {
  const coordinates = path.map((coord) => [coord.longitude, coord.latitude]);
  const feature = turfLineString(coordinates, {
    ...featureProperties
  });
  return [feature];
};
export {
  getStraightLineFeatures
};
//# sourceMappingURL=get-straight-line-features.js.map
