Skip to content

ZebraCat/pokemon-radar

Repository files navigation

PokemonGo Map

Build Status Coverage Status

Live visualization of all the pokemon (with option to show gyms and pokestops) in your area. This is a proof of concept that we can load all the pokemon visible nearby given a location. Currently runs on a Flask server displaying a Google Maps with markers on it.

Building off Mila432's PokemonGo API, tejado's additions, leegao's additions and Flask-GoogleMaps.


Requirements

  • Python 2.7.x

Installation

pip install -r requirements.txt

Usage

python example.py -a authService -u myUsername -p myPassword -l "Boulder, CO" -st 5

Flag Description Required
-a --auth-service Auth service (PTC or google)
-u --username Username
-p --password Password
-l --location Any location Google Maps can understand
-st --step-limit Steps to take
-i --ignore Comma-separated list of Pokémon names or IDs to ignore
-o --only Comma-separated list of Pokémon names or IDs to search
-ar --auto-refresh Number of seconds on which to autorefresh
-dp --display-pokestop Display pokéstops
-dg --display-gym Display gyms
-H --host Set web server listening host
-P --port Set web server listening port
-L --locale Locale for Pokemon names: default en, check locale folder for more options
-c --china Coordinates transformer for China
-d --debug Debug mode
-ol --onlylure Display only lured pokéstop

Note: 5 steps is approximately a 1.2km radius. More than 10 is redundant (you usually can't walk that far before despawn anyway)

Working examples

ignore Pokémon

python example.py -a PTC -u myUsername -p myPassword -l "Central Park, New York, NY" -st 5 -i Pidgey,Weedle,Zubat

make server externally visible

IPv4

python example.py -a PTC -u myUsername -p myPassword -l "Central Park, New York, NY" -st 5 -H 0.0.0.0 -P 5000

IPv6

python example.py -a PTC -u myUsername -p myPassword -l "Central Park, New York, NY" -st 5 -H :: -P 5000

Common Errors

Exception, e <- Invalid syntax.

  • You are using python 3, download python 2.7 instead.

pip or python is not recognized as an internal or external command

  • Replace pip with C:\Python27\Scripts\pip
  • Replace python with C:\Python27\python

FAQ

Can I sign in with Google?

  • Yes you can! Pass the flag -a google to use Google authentication

I'm on Windows, why does nothing work?

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages