node-red-contrib-turf 0.0.7

Node Red integration for TurfJS

npm install node-red-contrib-turf

A node which exposes all the awesome features of the Turf Library for spatial analysis.

About Turf:

Turf includes traditional spatial operations, helper functions for creating GeoJSON data, and data classification and statistics tools. Turf uses GeoJSON for all geographic data. Turf expects the data to be standard WGS84 longitude, latitude coordinates. Check out for a tool to easily create this data. Most Turf functions work with GeoJSON features. These are are pieces of data that represent a collection of properties (ie: population, elevation, zipcode, etc.) along with a geometry. GeoJSON has several geometry types such as:

  • Point
  • LineString
  • Polygon

How to use the node:

The input message must contain a msg.topic which sets the turf function (Turf Functions). The msg.payload must be an array of input parameters.

Example: Input-msg for generating 100 random points within a given bounding box (example from the docs):

msg.topic = "random";
msg.payload = ['points', 100, {bbox: [-70, 40, -60, 60]}];

Node Info

Version: 0.0.7
Updated 1 year, 2 months ago
License: MIT


15 in the last day
35 in the last week
85 in the last month


  • turf


  • node-red
  • turf


  • bloigge