Closed hypixus closed 8 years ago
Have a look at https://github.com/PokemonGoF/PokemonGo-Bot/ they are actively using this API. There should be plenty of examples in that code.
But keep in mind, botting is against the TOS and it's not nice towards the community!
Also check this comment for an explanation on the difference between wild and catchable pokemon. Btw. no offense but this was very easy to find out via google..
@kaikuchn Thanks a lot! Finally I am able to do this properly. Of course, I set random values so I won't always catch(I'm not trying to cheat, just connected gps module to my raspberry pi and try to chatch some near my house). Googling it was a lot of problem - I don't have any computer or phone other than raspi, so googling anything is horrible... Closing issue.
Hello
I encountered a few questions whilst trying to analyze response of get_map_objects and when I got to:
(api set up as in pokecli.py) cell_ids = util.get_cell_ids(position[0], position[1]) timestamps = [0,] * len(cell_ids) response_dict = api.get_map_objects(latitude =position[0], longitude = position[1], since_timestamp_ms = timestamps, cell_id = cell_ids) catchable=[] for x in responsedict['responses']['GET_MAP_OBJECTS']['map_cells']: item=x.get('catchable_pokemon', None) if item is not None: catchable.append(item[0])
Huge thanks for someone who could anwser these questions.