node-googlemaps
node-googlemaps copied to clipboard
Successive request via gmAPI not working
Hi! i have this function:
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?
You might need to publish a bit more of your code to receive proper help.