为什么在R中的“展示位置”包中使用“ Google Maps API密钥”和“客户端ID”时得到INVALID_SIGNATURE

时间:2018-12-18 01:26:35

标签: r google-maps

## "placement" package 
## install.packages("placement")
library(placement)
##  Get coordinates for the Empire State Building and Google
address2 <- c("350 5th Ave, New York, NY 10118, USA",
              "1600 Amphitheatre Pkwy, Mountain View, CA 94043, USA")

coordset2 <- geocode_url(address, auth ="work",  
                          privkey = "My_Google_Maps_API_Key", 
                          clientid = "My_Client_Id",
                          clean = TRUE, add_date='today', verbose=TRUE)
## View the returns
print(coordset2[ , 1:5])
##============= Output2:
## lat lng location_type formatted_address            status
## 1  NA  NA          <NA>              <NA> INVALID_SIGNATURE
## 2  NA  NA          <NA>              <NA> INVALID_SIGNATURE

我在代码中使用了(付费)Google Maps API密钥(AI **** P-o ** c)和相应的客户端ID(4 **** 4-u4 **** m2)。通过我的Google Cloud Platform控制台,我可以验证是否正在调用我的API。它看起来像一个身份验证问题,但我无法理解我要去哪里。请帮我这个查询。提前致谢。

0 个答案:

没有答案