开发者

Google Maps and Python

开发者 https://www.devze.com 2023-01-23 19:35 出处:网络
I am building an GPS t开发者_StackOverflowracker application in Python. How can I use Google Maps in my application?Google maps is a client-side web application, meaning it can only run in a web brows

I am building an GPS t开发者_StackOverflowracker application in Python. How can I use Google Maps in my application?


Google maps is a client-side web application, meaning it can only run in a web browser. You will have to use a web server with your python application (using mod_wsgi or the like and some type of web library like tornado or cherrypy). The web server will serve HTML and javascript files which may make use of Google Maps.


I don't see why you'd need a web server. There are various network APIs to google-maps including this one http://code.google.com/apis/maps/documentation/webservices/index.html, and python can access those APIs using urllib and/or httplib

Try googling "python google map" - it seems there are some python packages already out there which encapsulate these APIs.


I do know there is a Client Library created for Python.

You can download it with pip install -U googlemaps

More information can be found here: https://github.com/googlemaps/google-maps-services-python The documentation here: https://googlemaps.github.io/google-maps-services-python/docs/2.4.4/

0

精彩评论

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

关注公众号