UNPKG

node-red-contrib-tak-registration

Version:

A Node-RED node to register to TAK and to help wrap files as datapackages to send to TAK

19 lines 474 B
// index.ts import { distance } from "@turf/distance"; import { segmentReduce } from "@turf/meta"; function length(geojson, options = {}) { return segmentReduce( geojson, (previousValue, segment) => { const coords = segment.geometry.coordinates; return previousValue + distance(coords[0], coords[1], options); }, 0 ); } var turf_length_default = length; export { turf_length_default as default, length }; //# sourceMappingURL=index.js.map