【发布时间】:2018-03-05 10:51:12
【问题描述】:
很抱歉重复了一个问题,但我无法用我找到的答案解决问题。我正在使用这个 repo 中的 transport-workshop.Rmd:https://github.com/nickbearman/transport-workshop。我使用 qmap 进行的前 3 个查询都没有问题 qmap('Leeds')、qmap('LS2 9JT') 和 qmap('LS2 9JT', zoom = 17)。但后来我继续工作坊并尝试qmap('LS2 9JT', zoom = 17, maptype = 'satellite'),它返回了这个错误:
geocode failed with status OVER_QUERY_LIMIT, location = "LS2 9JT"Error in data.frame(ll.lat = ll[1], ll.lon = ll[2], ur.lat = ur[1], ur.lon = ur[2]) :
arguments imply differing number of rows: 0, 1
检查时:
> geocodeQueryCheck()
2495 geocoding queries remaining.
发现指定 Google Maps API 密钥可能会解决问题:
devtools::install_github("dkahle/ggmap")
register_google(key = "my_api_key") 来自 https://developers.google.com/maps/documentation/geocoding/get-api-key ,但我不断收到同样的错误。不知道还有什么要检查或尝试的。
使用 R 版本 3.4.3 (2017-11-30),Windows 10。
【问题讨论】:
标签: r google-geocoder google-geocoding-api