Reputation: 137
I'm working on a project in Python using tkinter that will allow for geolocation of IP addresses. I have the raw conversions down, and I can take an IP address and know city, state, country, longitude, latitude, etc. I'm wondering if there's any way to embed Google Maps or something similar into my program to offer a visual representation.
Upvotes: 5
Views: 8746
Reputation: 4817
If you don't need interactivity, the Static Maps API should be simple to integrate into your application. Just build a URL for the map and then download the image and display it.
Note that the API Terms have special provisions for non-web-based applications.
Upvotes: 0
Reputation: 2737
Most GUI Frameworks have a way to embed a web browser frame, with a way to execute javascript from the python code. If this is available to you, you could use the Google Maps JavaScript API v3 to display a map.
If you let us know which GUI framework you're using, we might be able to help more.
Upvotes: 1