Armax/Pokemon-GO-node-api

maybe beginner's mistake

Opened this issue · 1 comments

Hi, the API is failing me when I set the PokeGo.init method (prop, function (err) {/ ...}).

I set the variables correctly, check them a few times, and the console shows me the following error:

/mnt/c/Users/x-user/Desktop/x-proyect/node_modules/pokemon-go-node-api/poke.io.js:841
        var _data$results$0$geome = data.results[0].geometry.location;

TypeError: Cannot read property 'geometry' of undefined
    at /mnt/c/Users/x-user/Desktop/x-proyect/node_modules/pokemon-go-node-api/poke.io.js:841:53

when checking the line number, I see that it shows a '}'

Looking deeper I realized where the error was:

{ error_message: 'You must use an API key to authenticate each request to Google Maps Platform APIs. For additional information, please refer to http://g.co/dev/maps-no-account',
  results: [],
  status: 'REQUEST_DENIED' }

Any help?