首页 > 解决方案 > 为什么我在 R 中使用“放置”包时得到“OVER_QUERY_LIMIT”

问题描述

## install the package "placement" 
## install.packages("placement")
library(placement)
##============= First Run:
## Without using Google API Key
##  Get coordinates for the Empire State Building and Google
address <- c("350 5th Ave, New York, NY 10118, USA", 
             "1600 Amphitheatre Pkwy, Mountain View, CA 94043, USA")
 coordset <- geocode_url(address, auth ="standard_api",  privkey= "",
                         clean=TRUE, add_date='today', verbose=TRUE)
## View the returns
print(coordset[ , 1:5])
##============= Output:
## lat lng location_type formatted_address           status
## 1  NA  NA          <NA>              <NA> OVER_QUERY_LIMIT
## 2  NA  NA          <NA>              <NA> OVER_QUERY_LIMIT

我只使用了一组 lat-long,所以我不确定为什么 OVER_QUERY_LIMIT 应该起作用。期待对此的解决方案。提前致谢。

标签: rgoogle-mapsgoogle-maps-api-3

解决方案


推荐阅读