Answers for "google api python"

1

google maps python api

pip install googlemaps

import googlemaps
from datetime import datetime

gmaps = googlemaps.Client(key='Add Your Key here')

# Geocoding an address
geocode_result = gmaps.geocode('1600 Amphitheatre Parkway, Mountain View, CA')

# Look up an address with reverse geocoding
reverse_geocode_result = gmaps.reverse_geocode((40.714224, -73.961452))

# Request directions via public transit
now = datetime.now()
directions_result = gmaps.directions("Sydney Town Hall",
                                     "Parramatta, NSW",
                                     mode="transit",
                                     departure_time=now)
Posted by: Guest on March-23-2021
0

google-api-python-client python 3

  pip install --upgrade google-api-python-client google-auth-httplib2 google-auth-oauthlib
Posted by: Guest on September-16-2021
-1

python google api

# python3 -m pip install webbrowser
import webbrowser

question = input("What is your question? ")
webbrowser.open("https://www.google.com" + str(question))
Posted by: Guest on December-08-2020

Python Answers by Framework

Browse Popular Code Answers by Language