-
Notifications
You must be signed in to change notification settings - Fork 444
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
get_map_objects? #191
Comments
The same here...any solution? |
Having the same problem as well. All I want is the location of gyms and pokestops. |
The default radius was the issue in my code, i used radius = 5 in get_cell_ids before instead of the default radius = 10 to get smaller group of pokestops. Unsure what was the old parameter unit but now it seems to be expressed in meters and values 300 - 1000 are getting the similar amount of pokestops as 5-10 before. Commit hash: 35221ff EDIT: I meant the one in utilities.py, spiral_poi_search.py uses its own method. Maybe it's better to reattach it to utilities.py |
the unkown6 fix has not been merged yet, see the pull requests |
Anyone figure this out? Modified spiral_poi_search.py so that it uses the utilities.py get_cell_ids, but im still running into the same issue |
@ProLoDs It might be just me, but even if I merge these files, the cells are still empty :( |
I've been banging my head on a wall with this problem. Am I missing something? |
I'd like to use the pgoapi to build my own application. I will be doing a little more than just a pokemonGo Map. Why am I only getting empty cells? |
@ProLoDs indeed the ahaaaaa map is working again :) thats a great relief, but my debug engineering aint that level yet to see what I need to change exactly. Just receiving empty cells, thought mayba a ban, but thats not the case, just guessing that somehow we need to implement the u6 proto together with all the requests i.e. get_mapobjects |
|
@jmangeja1 |
@dnsBlah if you don't do step 4, you will get an error saying it cant find encrypt.so so thats easy to track down |
@dnsBlah These should be run after 4 in my previous comment |
Actually I used the dll file life saver! |
@jmangeja1 thanks a lot! On my debian however putting encrypt.so into a directory in $PATH did not work, i had to use an absolute path instead. |
I am using https://github.com/keyphact repository as of evening of August 10th with encrypt.dll compiled on a mac and am not getting any objects returned in GET_MAP_OBJECTS calls. What is the fix? |
@BigChase if youre using a Mac, you need encrypt.so and you need to compile it yourself. Follow my instructions posted earlier |
@jmangeja1 I've done so. Compiled both into encrypt.dll in /usr/local/lib and as encrypt.so in same directory as pgoapi.py. How can I debut encrypt.dll in order to determine if it's functioning correctly? (There were a large number of warnings during compilation to encrypt.so, but just repeats of "warning: '&' within '|' [-Wbitwise-op-parentheses]".) (On a Mac.) |
warnings are fine. Did you change the line about signature lib in pgoapi.py? |
Yes, changed that line though I am using keyphact's repository which was updated yesterday and again today which I believe deals with signature issues in slightly different way. With the folllowing line in pokecli.py:
plus i added encrypt.dll to global path. |
try app.activate_signature("encrypt.so") |
Great idea! And guess what? Worked like a charm! Love you man. Was working on this non-stop for 24 hours straight trying every combination of repository, user account, etc. Until I followed your advice, I was using the compilation instructions and file placement on the following URL: #181 (comment). Wonder why it didn't work and your approach did? The next issue I am having is that I have to run pokecli.py twice everytime. The first time always yields: "pgoapi.exceptions.ServerSideRequestThrottlingException: Request throttled by server... slow down man". And then immediately rerunning script works to completion. Any ideas? Thanks again. Huge help! |
Yea, You need to put time.sleep(x) delays after get_map_objects i recommend 10 seconds |
There is only one get_map_objects in pokecli.py, yet I still experience the described "slow doan man" failure on the first script execution. Can't figure out why? |
put a time.sleep(1) after any api call made in pokecli.py |
Thanks again. Now to start understanding the get_map_objects responses.... (size of a cell, how to reference the spawn times and exact locations of nearby pokemon, etc.)... |
@dnsBlah |
I'm using a Unix machine, sorry. My dll would be useless. |
@dnsBlah how are you using a proxy? When I use a proxy it doesn't return and forts or Pokemon |
ow nice! |
On Ubuntu 16.04, with last update.
Any solution? |
I am getting empty cells as well. Even after different combinations of radius, GPS coords and delay. Here is roughly how the output looks like: Why am I not able to get a single wild pokemon?? |
I just ran the spiral search demo and I didn't find any pokemon or pokestops and I know there were some in the area. I'm only seeing these two fields in the JSON response.
'current_timestamp_ms': 1470569750623,
's2_cell_id': 9290065149094264832
The text was updated successfully, but these errors were encountered: