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 current location with geolocate #202
Comments
You need to supply Wifi and Cell tower information for the Geolocate API to do it's job. From the documentation: The Google Maps Geolocation API returns a location and accuracy radius based on information about cell towers and WiFi nodes that the mobile client can detect. |
I'already test that but I couldn't retrieve the information. is there any example to do this? |
Thanks, |
As explained in the documentation, this Geolocation API requires WiFi and Cellular tower information to be able to calculate the location. Without this required data, there is nothing this API can do. |
Hello @masoudr, maybe you have to disable geocoding API from google console and leave geolocation api enabled. In this way your script will run and you will get location with accuracy in meters. I tried your python script above but the position returned is non accurate, because of geolocation by ip address. |
@forwhomthebelltools Thanks for the tip. I tried the manual method and sent POST request directly to Google API and it worked somehow. |
Hello @masoudr , can i see the scripts have you tried and works? |
@trinanda I couldn't get any result from |
Hey, here's a different solution to the same problem and you can obtain more accurate geolocation(lat,lng coordinates) using selenium. Tutorial for that can be found here: https://link.medium.com/LOSOvlDLiU Or find the script for it, directly here: https://github.com/joeljogy/Getting-GeoLocation |
@joeljogy This is perfect. Thank you for your solution. |
This is a cool but very unsustainable solution. |
Hi,
I want to get the current location based on this link but I can't find any python example to do that. I want to create a general code to get the current location.
I used this part of code but it didn't work.
Thanks.
The text was updated successfully, but these errors were encountered: