instructions对于 Google Maps API 的 v.3,我说
should load the Maps API using an API key
奇怪的是它说我应该...,而不是我必须...。无论如何,目前,我没有使用 API key 仅仅是因为(据我所知)在我编写调用此 API 的代码时没有提及 API key 。
我是否应该返回并向加载 API 的 URL 添加 API key ?没有 key 似乎也能正常工作,所以我没有任何特别的动机去做这件事。
最佳答案
如果您是企业用户,您实际上需要不拥有 key 。 Here's引自谷歌:
Google Maps API for Business developers must not include a key in their requests. Please refer to Loading the Google Maps JavaScript API for Business-specific instructions.
但是,普通用户无论有没有 key 都没有问题,尽管 Google 建议您使用 key 以便您可以监控 API 的使用情况。 Here是验证这一点的引用:
The Google Maps JavaScript API V3 does not require a key, but there are benefits to using one.
关于javascript - 使用没有 key 的google maps api,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11397637/