Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

149
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda