Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

147
Views
Calculating a buffer in Node Red with turf.js

I am working on Node-Red, and for my project I also use turf.js, which can be installed on node-red as well (node-red-contrib-turf).

This is how the structure looks:
enter image description here

With functionOne having this code:

msg.topic = "point";
msg.payload = [[-75.343, 39.984]];
return msg;

And functionTwo:

pt = msg.payload
msg.topic = "buffer";
msg.payload = [pt, 5, {units: 'kilometers'}];

return msg;

So, the first function is used to produce a point of type Feature as stated in the docs and I am passing it to the second one where I save it in the variable pt and then when I execute the whole thing it does not happen anything.

Does someone know what my mistake is?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!