Я следую примеру, найденному на главной странице GitHub относительно googlemaps
, и пишу свой собственный код для извлечения всех кинотеатров из определенной области.
Код такой:
import googlemaps
gmaps = googlemaps.Client(key='MyGoogleKey')
search_loction = gmaps.location('40.714224, -73.961452').type('movie_theater')
print (search_loction)
возвращает мне ошибку:
Traceback (most recent call last):
File "GoogleMap.py", line 5, in <module>
search_loction = gmaps.location('40.714224, -73.961452')
AttributeError: 'Client' object has no attribute 'location'
Если я следую руководству, да, атрибут [location]
разрешен
![enter image description here](https://i.stack.imgur.com/d12x3.png)
Так что я делаю не так?