"俄克拉荷马城的Google Maps API超时,OK"和类似的城市

时间:2018-04-17 20:57:35

标签: google-maps google-geocoding-api

我看到这些城市的(大部分)一致超时。这是一个非常好奇的模式:

  • 俄克拉何马城,好的
  • 堪萨斯城,堪萨斯州
  • 爱荷华州爱荷华州
  • 马里兰州,MD

前两个是一致的,后两个有时是有效的。纽约市,纽约州等其他城市的工作始终如一。

>>> 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

1 个答案:

答案 0 :(得分:1)

这是known issue首次在4月11日报道。谷歌仍在努力。您可以在问题跟踪器上加注问题,以获取Google工程师的更新

更新

该错误已于2018年4月20日解决。