有人能指导我使用最好的位置跟踪器,使用Python库跟踪纬度和经度吗。我正在为非营利组织(野生动物救援)做志愿者,并急切地试图追踪确切的位置。
我的文件有2800个条目来追踪纬度和经度
我的代码:
lat_long=[]
import geopandas as gpd
from geopy.geocoders import ArcGIS
geolocator = ArcGIS()
for address in new_wordlist:
location = geolocator.geocode(address)
loc={'latitude':location.latitude,'longitude':location.longitude}
lat_long.append(loc)
编码工作正常,但出现以下错误。并且只能接收900个条目
错误:HTTPSConnectionPool(host='geocode.arcgis.com',port=443):url:/arcgis/rest/services/World/GeocodeServer/findAddressCandidate超过了最大重试次数?singleLine=约翰+奥尔德姆+公园+西部+澳大利亚&f=json&maxLocations=1(由ReadTimeoutError引起(“HTTPSConnectionPool(host='geocode.arcgis.com',port=443):读取超时。(读取超时=1)”)
请建议平稳运行代码的最佳做法。。