GooMPy | Google Maps in Python | Map library
kandi X-RAY | GooMPy Summary
kandi X-RAY | GooMPy Summary
Interactive Google Maps for Python. Tested with Python2.7 and Python3.6. GooMPy provides a Python interface to the Google Static Maps API, automatically downloading and stitching together map tiles into a single image that you can zoom and pan dynamically in your Python program. To support using maps when you don't have an internet connection, GooMPY provides a pre-fetching function that stores the tiles in a caching folder. To keep the amount of tile-downloading to a minimum, GooMPy doesn't have functions for adding waypoints or other annotations to the map through Google's API. To run GooMPy you'll need the Python Image Library (PIL) or equivalent (Pillow for Windows and OS X) installed on your computer. The repository includes an example using Tkinter, though you should be able to use GooMPy with other toolkits like wx and Qt.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Add radio button
- Return the number of tiles required by the given coordinates
- Grab tile from Google Maps API
- Set maptype
- Reloads the document
- Explicitly change the map
- Fetches and updates the database
- Reload the cursor
- Redraw the image
- Return the image
- Handle move event
- Move the bounding box
- Constrain a given range of values
- Add a zoom button
- Use this method to specify a zoom level
- Zoom the zoom level
GooMPy Key Features
GooMPy Examples and Code Snippets
Community Discussions
Trending Discussions on GooMPy
QUESTION
I'm trying to develop a system that will show the user a route that GoogleMaps has calculated. I can get the route, via the googlemaps API. The system will send the API locations which the user has inputted, so the points will be arbatary.
My current system for displaying the map is using goompy. This works by extracting tiles for a set location and then displaying them on a tkinter canvas. How do I also extract tiles for the route overlay?
If it's not possible using goompy, could you point me in the right direction.
Thanks
...ANSWER
Answered 2018-Feb-19 at 21:41I've had a look at GooMPy on GitHub (https://github.com/simondlevy/GooMPy). The README.md contains the following text
GooMPy provides a Python interface to the Google Static Maps API, automatically downloading and stitching together map tiles into a single image that you can zoom and pan dynamically in your Python program.
Please be advised that the stitching of static maps tiles is prohibited by the Google Maps API Terms of Service. Have a look at paragraph 10.5 (b) of Terms of Service, it reads
No derivative works. You will not modify or create a derivative work based on any Content unless expressly permitted to do so under these Terms. For example, the following are prohibited: (i) creating server-side modification of map tiles; (ii) stitching multiple static map images together to display a map that is larger than permitted in the Maps APIs Documentation; or (iii) tracing or copying the copyrightable elements of Google’s maps or building outlines and creating a new work, such as a new mapping or navigation dataset.
You should use Google Maps JavaScript API or Static Maps API to draw routes and be compliant with Terms of Service.
Have also look at paragraph 10.1 (a) that reads
No access to APIs or Content except through the Service. You will not access the Maps API(s) or the Content except through the Service. For example, you must not access map tiles or imagery through interfaces or channels (including undocumented Google interfaces) other than the Maps API(s).
source: https://developers.google.com/maps/terms?hl=es#10-license-restrictions
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install GooMPy
You can use GooMPy like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page