Member-only story

Google Earth in Python

Python Coding
Sep 8, 2024

--

import webbrowser

# Specify the URL for Google Earth
google_earth_url = 'https://earth.google.com/'

# Open Google Earth in the default web browser
webbrowser.open(google_earth_url)
True

Location finding using Python

import webbrowser

def find_city_on_google_earth(city_name):

google_earth_url = f'https://earth.google.com/web/search/{city_name}'

webbrowser.open(google_earth_url)

city_name = input("Enter Name to find location :")
find_city_on_google_earth(city_name)

https://youtube.com/shorts/WRJ5mKrNkVU?feature=share

--

--

Python Coding
Python Coding

Written by Python Coding

Learn python tips and tricks with code I Share your knowledge with us to help society. Python Quiz: https://www.clcoding.com/p/quiz-questions.html

No responses yet