Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Successive request via gmAPI not working #99

Open
aj07mm opened this issue Jan 15, 2016 · 1 comment
Open

Successive request via gmAPI not working #99

aj07mm opened this issue Jan 15, 2016 · 1 comment

Comments

@aj07mm
Copy link

aj07mm commented Jan 15, 2016

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?

@fabriziomoscon
Copy link
Collaborator

You might need to publish a bit more of your code to receive proper help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants