当前位置: 动力学知识库 > 问答 > 编程问答 >

google maps - Python googlemaps, GoogleMapsError: Error 610: G_GEO_BAD_KEY

问题描述:

I've got a problem with Python googlemaps. I've already generated api-key for server app in API Console, but I'm still getting error 610 when I'm running this part of code:

from googlemaps import GoogleMaps

....

gmap = GoogleMaps(maps_api_key)

my_address = gmap.latlng_to_address(lat, lng)

Error:

raise GoogleMapsError(status_code, url, response)

GoogleMapsError: Error 610: G_GEO_BAD_KEY

What can be wrong?

网友答案:

Although Google deprecated the V2 calls with googlemaps (which is why you're seeing the broken calls), they just recently announced that they are giving developers a six-month extension (until September 8, 2013) to move from the V2 to V3 API. See Update on Geocoding API V2 for details.

In the meantime, check out pygeocoder as a possible Python V3 solution.

分享给朋友:
您可能感兴趣的文章:
随机阅读: