Member-only story
Google Earth in Python
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)