-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Use the latitude and longitude to get the altitude from Google #2762
Comments
Would be great to implement the altitude in the followpath there is altitude data in gpsies |
Something like this: https://www.daftlogic.com/sandbox-google-maps-find-altitude.htm would be better. |
Google altitude api is 2500 uses. Runing a bot will use that in no time. |
Didn't seen that, maybe we can use another source? |
you could calculate an reference ellipsoid like wgs84 for your current lat/long and approximate the altitude. |
The google api is a day rate, we could cache two points and gradually morph as we move between them |
Does this solution just ignore the rate limit? Interpolating between points would be better, no? |
I may suggest something like that in: PokemonGo-Bot\pokemongo_bot__init__.py
I didn't take a close look at everything in the code but it was looking like a central place to retrieve current bot position to be used as input for most of the call. But I guess there are some place in the code where the returned alt value was ignored and or overwritten eventually... |
Related #2762, #3621, #3808, #4114. It will probably take me more time to write than some of our more skilled devs.
import geocoder Send api.set_position with altitude (Source https://geocoder.readthedocs.io/providers/Google.html#elevation) Has anyone looked at the response on the app if alt is in m or km? |
Paths created by gpsies already have altitude for every position on the path. Would be good to implement this in two steps - one to send the altitude to the api using data already at hand (when using a path) or a default, and secondly to populate the altitude if it's not already known using a geocoder. |
look is time to remove zero 'altitude' here&there and check position
exemple: step_walkwe.py line 41 set alt to zero ?
other
https://github.com/PokemonGoF/PokemonGo-Bot/search?utf8=%E2%9C%93&q=position
and set alt in config?
The text was updated successfully, but these errors were encountered: