

function getResult(callback, parameters) {
  var request = require('request');
  
  var num_line = parameters.num_line;
  
  var result_value = {status : "ini"};
  console.log("res 0 ",result_value);
  request('http://api-ratp.pierre-grimaud.fr/v2/traffic/metros/'+num_ligne, function (error, response, body) {
      if (!error && response.statusCode == 200) {
        var info = JSON.parse(body)
          result_value = {result : info.response.message};
          callback(result_value.result + num_ligne); 

      }else{
          result_value = {status :"erro"};
          callback(result_value);
      }
      
  
    });
  };

exports.getResult = getResult;

@@ -38,16 +38,99 @@
 ters) %7B%0A
+  %0A  var result_value = %7Bstatus : %22ini%22%7D;%0A  console.log(%22res 0 %22,result_value);%0A  %0A
   var re
@@ -207,82 +207,8 @@
  %0A  
-var result_value = %7Bstatus : %22ini%22%7D;%0A  console.log(%22res 0 %22,result_value);
 %0A  r

Update RATP_App.js