我看到这些城市的(大部分)一致超时。这是一个非常好奇的模式:
前两个是一致的,后两个有时是有效的。纽约市,纽约州等其他城市的工作始终如一。
>>> gmaps.geocode('Oklahoma City, OK')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/erikbern/mortgage/geo/env/lib/python3.6/site-packages/googlemaps/client.py", line 356, in wrapper
result = func(*args, **kwargs)
File "/Users/erikbern/mortgage/geo/env/lib/python3.6/site-packages/googlemaps/geocoding.py", line 68, in geocode
return client._request("/maps/api/geocode/json", params)["results"]
File "/Users/erikbern/mortgage/geo/env/lib/python3.6/site-packages/googlemaps/client.py", line 239, in _request
extract_body, requests_kwargs, post_json)
File "/Users/erikbern/mortgage/geo/env/lib/python3.6/site-packages/googlemaps/client.py", line 239, in _request
extract_body, requests_kwargs, post_json)
File "/Users/erikbern/mortgage/geo/env/lib/python3.6/site-packages/googlemaps/client.py", line 239, in _request
extract_body, requests_kwargs, post_json)
[Previous line repeated 7 more times]
File "/Users/erikbern/mortgage/geo/env/lib/python3.6/site-packages/googlemaps/client.py", line 203, in _request
raise googlemaps.exceptions.Timeout()
googlemaps.exceptions.Timeout
答案 0 :(得分:1)