Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I embed google maps into my Python program?

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.

like image 685
bbbgscott Avatar asked Nov 13 '22 18:11

bbbgscott


1 Answers

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.

like image 66
JeffS Avatar answered Nov 15 '22 12:11

JeffS