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

24 lines (21 loc) 772 B
import { AllGeoJSON } from '@turf/helpers'; /** * Takes input features and flips all of their coordinates from `[x, y]` to `[y, x]`. * * @function * @param {GeoJSON} geojson input features * @param {Object} [options={}] Optional parameters * @param {boolean} [options.mutate=false] allows GeoJSON input to be mutated (significant performance increase if true) * @returns {GeoJSON} a feature or set of features of the same type as `input` with flipped coordinates * @example * var serbia = turf.point([20.566406, 43.421008]); * * var saudiArabia = turf.flip(serbia); * * //addToMap * var addToMap = [serbia, saudiArabia]; */ declare function flip<T extends AllGeoJSON>(geojson: T, options?: { mutate?: boolean; }): T; export { flip as default, flip };