geopy.exc.GeocoderInsufficientPrivileges:HTTP 错误 403:禁止

2024-03-16

我尝试使用 geopy 获取纬度/经度,但它会抛出 http 403 禁止错误。

from geopy.geocoders import Nominatim
geolocator = Nominatim()
addr = '350 5th Ave, New York, NY 10118'
location = geolocator.geocode(addr)
print location

过去几天一切都运转良好。

    raise ERROR_CODE_MAP[code](message)
geopy.exc.GeocoderInsufficientPrivileges: HTTP Error 403: Forbidden

“GeocoderInsufficientPrivileges”错误 - 尝试使用“Photon”而不是“Nominatim”

from geopy.geocoders import Photon
geolocator = Photon(user_agent="measurements")
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

geopy.exc.GeocoderInsufficientPrivileges:HTTP 错误 403:禁止 的相关文章

随机推荐