多个Google Maps API密钥 [英] Multiple Google Maps API keys

查看:119
本文介绍了多个Google Maps API密钥的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在构建两个单独的应用程序,它们将具有两个不同的域名/URL.这两个应用都需要利用Google Maps API密钥.即使它们将在同一Web内容管理系统服务器上构建,也可以为这两个不同的应用程序注册两个单独的API密钥吗?前任.在我的Google帐户中创建2个项目,并为每个项目生成2个密钥.

We are building two separate applications that will have two different domain names/URLs. Both of these apps with need to utilize a Google Maps API key. Is it OK to register two separate API keys for these two different applications even though they will be built on the same Web Content Management System server? Ex. Create 2 projects in my Google account and generate 2 keys for each project.

如果我们在两个应用程序中使用相同的密钥,我们将尝试避免超过25k的限制. 我只想确保这不违反Google的条款.我认为不是,但是想要确定.

We are trying to avoid hitting the 25k limit if we use the same key across both of the applications. I just want to ensure this isn't against Google's Terms. I don't think it is but want to be sure.

推荐答案

是的,可以将两个不同的API密钥用于两个不同的域.例如我现在在一个网站上工作,该网站有11个不同的键,用于11个不同的URL,例如

Yes, it's ok to use two different API keys for two different domains. e.g. I work on a site right now that has 11 different keys, for 11 different URLs like

  1. foo.example.com
  2. bar.example.com
  3. abc.example.com

每个URL都有其自己的密钥.

Each of those URLs has its own key.

这篇关于多个Google Maps API密钥的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆