You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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?
The text was updated successfully, but these errors were encountered: