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

SetLocation #32

Closed
marcianosr opened this issue Jul 19, 2016 · 3 comments
Closed

SetLocation #32

marcianosr opened this issue Jul 19, 2016 · 3 comments

Comments

@marcianosr
Copy link

marcianosr commented Jul 19, 2016

Hi!

This may sound stupid, but how does the setLocation function actually work?

I have this code:

Pokeio.SetLocation(location2, function(err, location){
          if (err) throw err;
          console.log('err' + err);
          console.log(location);
          console.log('location2');
          console.log(location2);

          location.latitude = 52.40937;
          location.longitude = 4.895058;
          location.altitude = 0;

          console.log(location);


        });

What does it actually do in the game?

Thanks.

@Armax
Copy link
Owner

Armax commented Jul 19, 2016

atm this method is used to change the location in the playerInfo json created for the player, is not yet changing the location in game, not yet because heartbeat send also a position update so when we will complete the heartbeat method SetLocation will update in-game location too

@Armax Armax closed this as completed Jul 19, 2016
@marcianosr
Copy link
Author

allright, thanks!

@elijthomas
Copy link

Do you know what the eta is on finishing the heartbeat ?

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

3 participants