如何获取 Google Maps Embed API 密钥? (Google 文档已过时)

How to get Google Maps Embed API key? (Google documentation is out of date)

我知道 Stack Overflow 上的这种问题不受欢迎,但是......在不可避免的否决之前,他们也经常得到回答。

我正在尝试获取 Google 地图嵌入 API,但文档(位于此处:https://developers.google.com/maps/documentation/javascript/tutorial#api_key)已过时,因为屏幕截图和说明没有与我在当前 Google Developers Console 上实际看到的不符。

有人解决这个问题吗?

  1. 访问 Google 开发者控制台并使用您的 Google 登录 帐户
  2. 创建项目(顶部的按钮)。
  3. 在 "APIs and auth"- 凭证 - 创建密钥。
  4. 在 "APIs and auth"- APIs - 搜索嵌入 API 并启用它。