spawnScan 0.1.1(mostly stable)(now with a fancy map)
A simple and fast spawnPoint finder for pokemon go
Features
- By performing 6 scans over the course of 1 hour, the spawn locations for a given area can be determined and a live map of active spawns can be made without having to further query the api, lowering server load
- Rectangle search areas, and multiple of them
- The scans take account of longitude distortion, so requests are equally spaced (was not the case in early mapping tools causing them to perform badly near the equator because their requests where too spread out)
- High speed scans while still maintaining maximum accuracy (many scan patterns where tested and this is using the fastest of the ones with over 98% accuracy)
- Multi thread support, allowing for faster, and thus forth bigger scans (up to 16 workers, after this point there is minimal increase in speed and your just putting more load on the servers)
Installation & Setup
Get a copy of the repository either by downloading or cloning the repo. Navigate to the top level directory (containing the requirements.txt file) and run:
pip install -r requirements.txt
This will install the latest release version of the PGoApi from Github, and will perform and editable local install of the main spawnscan package. The local install of the package will create an entry point called 'spawnscan' which is used to run the program from the command line.
Everything is set using the config.json file, in this you put account details, and rectangular regions to scan. A config.json.example file is provided. Copy this to config.json and populated it with your login information and the desired region.
Usage
There are two runnable scripts, check.py, and spawn.py - check.py checks the config file is valid json, and estimates how long the scan will take to finish one pass - spawn.py is the main script that does all the heavy work, finding the spawns, it will refuse to run on a workload that is predicted to take more than 10minutes, as it needs to be able to do 6 passes in an hour
Also note that spawn.py overwrites its output files each run, so do back them up
If you would like to help contribute data, please send a ziped copy of the output files [pokes.json,spawns.json,stops.json,gyms.json] via private message, to reddit user TBTerra
Maps
The maps will not work by default as you will have to use your own maps API key
To get an API key visit this page and click on get key
You will then need to go into each of the html files and at the bottom find a line like:
src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&callback=initMap">
and you will need to replace YOUR_API_KEY with your own API key
The map of the spawn points will try to update its markers once per second, while this is fine on modern PCs on maps with a few thousand points, it may become slow on less powerful systems and on maps with far more points
Recommended method
The recommended way to use this script is first to plan out your scan area, using viewWork.html to visualise it, and check.py to make sure it wont take too long
After that run spawn.py and wait for it to complete (should take between 51 and 60 minutes depending on size of scan)
Then enjoy the map of the spawn points
If you would like to help contribute data, please send a ziped copy of the output files [pokes.json,spawns.json,stops.json,gyms.json] via private message, to reddit user TBTerra