【发布时间】:2018-10-08 15:56:44
【问题描述】:
我正在尝试通过 ggmap 包的 revgeocode 命令查询多个坐标,但在运行时我的代码告诉我无法连接到 API url。
我正在努力理解:
- 如何将 API 密钥放入代码中以便生成查询?
- 为什么我没做就告诉我已经超过咨询次数了?
以下是部分代码:
ll <- cbind(Longitud, Latitud)
LL_1 <- as.matrix(ll)
DirR <- rep(0, nrow(LL_1))
for (j in 1:nrow(LL_1)){
DirR[j]<- revgeocode(LL_1[j,])
}
【问题讨论】:
-
阅读developers.google.com/maps/documentation/geocoding/… 和github.com/dkahle/ggmap/issues/227#ref-issue-359659441。因此,您可能希望启用计费并切换到有据可查的
googleway软件包。