开发者

Use Google Gears geolocation from a python app

开发者 https://www.devze.com 2023-02-07 02:23 出处:网络
I\'d like to use the Google geolocation API in my app, written in Python. My problem is that Google provides a JSON interface (easily useable from Python) but from http://code.google.com/p/gears/wiki/

I'd like to use the Google geolocation API in my app, written in Python. My problem is that Google provides a JSON interface (easily useable from Python) but from http://code.google.com/p/gears/wiki/GeolocationAPI I see that the API "is published to allow developers to provide their own network location server for use through the Gears API. Google's network location server is only to开发者_如何学运维 be used through the Gears API. See section 5.3 of the Gears Terms of Service at [address]."

It is a very strange thing: there is a very cool JSON but I cannot use it. I have to use it through Google Gears instead. But how can I do it from a Python app?

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

Thanks,

Alessio Palmero Aprosio


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

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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号