Use Google Gears geolocation from a python application.

I would like to use the Google geolocation API in my application written in Python. My problem is that Google provides a JSON interface (easy to use with Python), but from the http://code.google.com/p/gears/wiki/GeolocationAPI I can see the API is โ€œpublished to allow developers to providing your own network network server for use through the Gears API. The Google Network Definition Server is used only through the Gears API. See Section 5.3 of the Gears Terms of Service at [.].

This is a very strange thing: there is very cool JSON, but I can not use it. I have to use it through Google Gears. But how can I do this from a Python application?

For example, I see that the geolocation service provided by Firefox directly calls the JSON API. Why can FF do this?

Thanks,
Alessio Palmero Aprosio

+4
source share
1 answer

Google has deprecated Gears completely since the geolocation feature is now standard in modern browsers (for certain values, "standard").

The pylocation module can provide the information you need. It can output geolocation data in text, json or xml.

0
source

Source: https://habr.com/ru/post/1336933/


All Articles