我需要多少 Google 地图 API 键?

How many Google Maps API Keys do I need?

问题

我实际上还没有在任何地方看到这个问题得到充分解决。

我正在使用需要 Google 地图 API 密钥的 WordPress 插件。我想知道的是,我可以为我管理的所有网站和应用程序使用一个 API 密钥,还是我需要为每个 属性 或应用程序使用一个单独的 API 密钥?

例如,我很高兴地发现我只需要一个 Google 网站站长工具帐户,我可以用它来管理我的所有网站,包括我为他人制作的网站。

然而,使用 Google 地图,它不是那么清楚。我制作的每个应用程序都需要一个单独的 API 密钥吗?

到目前为止我在哪里寻找答案:

我从这些帖子中得出的结论是,您可以拥有多个 API 键,但您不需要 any API 键,但是 Google 映射 API 键有许多不同的 flavors(嗯?)...有点令人困惑。

我的问题

如果我正在为客户 A、B 和 C 制作网站,"client-a.com" 需要与 "client-b.com" 不同的 API 密钥吗?

备注

这个问题不仅仅是关于 Google 地图,而是真正的 API 引起了混淆。

  1. If I am making a website for clients A, B, & C does "client-a.com" need a different API Key than "client-b.com"?

通常,是的。您将在每个域的基础上将各种地图 API 列入白名单。而且您可能会受到速率限制。这对于组织目的来说更好,如果您要将密钥分开,则需要将费用转嫁给客户。

  1. Are there any "go-to" plain-English docs (not tech-manual-ese like a Perl man-page) that explain with good examples (Sitepoint has a really good way of explaining things with conversational writing, and walking you through WHY we do things in programming, not just how) when and where to use API keys and which ones to use?

Google 刚刚对他们的地图平台进行了重大重组。编写最终的第三方指南可能需要一些时间。这是他们的 recent announcement.

  1. Can I let my friend borrow my API Key to build his app? What are the ramifications of doing such?

当然可以,但他可能会影响您的速率限制。

  1. Can I use a Google Maps API key for any other Google app (docs, sheets, YouTube, G+, etc.)? Is a Google API key universal to all apps that integrate/interface with a Google product?

仅适用于 Google 地图。