Armax / Pokemon-GO-node-api

Pokemon GO api node.js library
MIT License
875 stars 198 forks source link

Best way to scan a large zone #191

Open Nico-Nico-FR opened 8 years ago

Nico-Nico-FR commented 8 years ago

Hello, I would like to use your node api to scan a complete zone of ~2x2 miles from an origin point. The principle is to browse some point in the area, and perform a query to retrieve all the Pokémon of the surrounding area (I use hb.cells[i].MapPokemon).

This algorithm does not seem accurate enough, as few Pokémon are raised. Do you have an idea to improve the scan (accuracy/time of lap)?

Results : DURATION 192.497s (too long 👎 )

WiS3 commented 8 years ago

You have to scan the area using multiple accounts and have every account scan a little part of the area. There is no other way since Niantic introduced request throttling.

fredx21 commented 8 years ago

What is throttled in this case? The maximum distance in between queries or the maximum number of queries per seconds?

WiS3 commented 8 years ago

Maximum requests per second. Max 1 request every 5 seconds

fredx21 commented 8 years ago

Is there a maximum account per ip?

WiS3 commented 8 years ago

I don't think so, map scanner out there already used up to 40 accounts without problems.

beuted commented 8 years ago

There is now a throttling on max accounts per IP (dunno how much tho') and the throttling per account is ~6-7s