注册 Google 地图 API 密钥
备注
此自定义用于复古 Shopify 模板,不适用于“Online Store 2.0”模板。
- 找到您的模板架构版本
- 探索“Online Store 2.0”模板自定义
您可以在模板中添加地图分区,以显示您的营业地点。Shopify 的许多免费模板都包含可以添加到主页的地图分区。
若要显示地图,您需要注册 Google 地图 API 密钥并将其包括在模板编辑器的地图分区设置中。
使用 Google 地图平台
使用 Google API 在您的模板中添加地图分区即表示您同意 Google 地图平台服务条款。
2018 年 6 月 11 日,Google 地图平台针对 Google 地图 API 的整理和使用方式进行了诸多更改。使用这些 API 需要使用 Google 地图平台设置计费账户。您将继续获得每月信用额度,以在阈值范围内涵盖这些服务。
有关定价的详细信息,请参阅 Google 地图平台定价和计费文档。
注册 Google 地图 API 密钥
您可以注册 Google 地图 API 密钥。
步骤:
- 访问 Google 地图平台页面,并点击开始使用。
- 选择地图、路线和位置产品,获取与免费模板地图分区配合使用所需的 API。
- 点击继续。
- 创建新名称或选择现有项目。
- 同意服务条款后,点击下一步。
- 通过 Google 地图平台创建计费账户。计费账户是新版 Google 地图平台的要求。有关详细信息,请参阅 Google 地图平台定价和计费文档。
- 启用 Google 地图平台后,将新的 Google 地图 API 密钥复制到剪贴板。
Shopify商户官网原文详情:
Register a Google Maps API key
Note
This customization is for vintage Shopify themes, and doesn’t apply to Online Store 2.0 themes.
- Find out your theme’s architecture version
- Explore Online Store 2.0 theme customizations
You can add a map section to your theme to show the location of your business. Many of the free themes from Shopify include a map section that you can add to your home page.
For the map to display, you will need to register a Google Maps API key and include it in the map section settings in the theme editor.
Using the Google Maps Platform
By using Google’s API to add a map section to your theme, you are agreeing to the Google Maps Platform Terms of Service.
On June 11, 2018, the Google Maps Platform introduced a number of changes to how Google Maps APIs are organized and used. Using these APIs requires setting up a billing account with the Google Maps Platform. You are provided a monthly credit on an ongoing basis to cover services up to a threshold.
For more information about pricing, see the Google Maps Platform pricing and billing documentation.
Register a Google Maps API key
You can register a Google Maps API key.
Steps:
- Visit the Google Maps Platform page and click Get started.
- Select the Maps, Routes, and Places products to get the APIs that are needed to work with the free themes Map section.
- Click Continue.
- Either create a new name or select an existing project.
- After agreeing to the terms of service, click Next.
- Create a billing account with the Google Maps Platform. A billing account is a requirement in the new Google Maps Platform. For more information, see the Google Maps Platform pricing and billing documentation.
- After enabling the Google Maps Platform, copy your new Google Maps API key to your clipboard.
码刀科技(www.lekshop.cn)是国内知名企业级电商平台提供商,为企业级商家提供最佳的电商平台搭建(多种模式电商平台搭建:B2B/B2B2C/B2C/O2O/新零售/跨境等)、平台管理系统开发及互联网采购解决方案服务, 联系客服了解更多.
