0
0 комментариев

Python 3.7

Windows ОС

Code:

import googlemaps
from datetime import datetime

gmaps = googlemaps.Client(key=('here my API')
# 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)
Error:
 line 7
    geocode_result = gmaps.geocode('1600 Amphitheatre Parkway, Mountain View, CA')
                 ^
SyntaxError: invalid syntax
Asked question
Добавить комментарий