ggmap:在API调用中使用客户端ID和签名?

时间:2019-02-28 19:58:12

标签: r ggmap google-static-maps

如何将ggmap软件包中的get_googlemap()函数用作使用客户端ID身份验证的高级计划客户?

首先,我如下“注册”我的Google帐户详细信息

register_google(account_type = "premium",
                client = "my-company",
                signature = "my1company1signature")  

然后我运行如下所示的get_googlemap()函数

get_googlemap(center = c(-79,  43))

产生错误消息

Error: Google now requires an API key.
   See ?register_google for details.

但是,我知道我应该能够仅使用我的客户端ID和签名来访问API。软件包中提供此功能吗?

注意:我当前正在使用ggmap 3.0.0。在以前的版本(我认为是2.7)中,我没有收到此错误消息,而是遇到了另一个问题,即签名只是简单地附加到url的末尾,而不是使用here

0 个答案:

没有答案