gmAPI.directions(params, function(err, res){
var duration = res.routes[0].legs[0].duration.text;
console.log(duration);
});
inside a two for loop, and it doesn't pass the first call, it stays there. I tried settimeout with 1000 and 3000 but no go, any of you guys know the prob?
Hi! i have this function:
inside a two for loop, and it doesn't pass the first call, it stays there. I tried settimeout with 1000 and 3000 but no go, any of you guys know the prob?