Routes Preferred API 目前仅适用于部分客户。如需了解详情,请
与销售人员联系。
开始使用
要在您的
所以必须启用它们。
要为您的项目启用 Routes Preferred API 方法,请执行以下操作:
登录 Cloud 控制台
然后选择“项目选择”标签页:
![选择项目选择标签页](https://developers.google.cn/static/maps/documentation/routes_preferred/images/project_selection.png?authuser=1&hl=zh-cn)
在 Select from 窗口中,选择 New Project。
![选择“新建项目”](https://developers.google.cn/static/maps/documentation/routes_preferred/images/new_project.png?authuser=1&hl=zh-cn)
为项目指定名称和位置,然后选择创建。
![创建项目](https://developers.google.cn/static/maps/documentation/routes_preferred/images/create_project.png?authuser=1&hl=zh-cn)
请与您的 Google 代表联系。
如果您尚未为 Routes Preferred API 启用
请前往“APIs”Google Cloud 控制台中的服务库。
如果已启用“首选路线”,则可以跳过此步骤。
![前往媒体库](https://developers.google.cn/static/maps/documentation/routes_preferred/images/navigate_library.png?authuser=1&hl=zh-cn)
然后搜索 Routes Preferred,打开 Routes Preferred API。
![开放式 API](https://developers.google.cn/static/maps/documentation/routes_preferred/images/open_api.png?authuser=1&hl=zh-cn)
如需启用该 API,请选择启用。
如果您还没有与您的项目关联的 API 密钥,
转到“凭据”标签页。如果您已经
拥有 API 密钥。
![转到“凭据”标签页](https://developers.google.cn/static/maps/documentation/routes_preferred/images/go_credentials.png?authuser=1&hl=zh-cn)
选择创建凭据,然后选择 API 密钥。
![选择 API 密钥](https://developers.google.cn/static/maps/documentation/routes_preferred/images/api_key.png?authuser=1&hl=zh-cn)
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-08-05。
[null,null,["最后更新时间 (UTC):2024-08-05。"],[[["To utilize Routes Preferred API, you must first enable it for your project through the Google Cloud console."],["Enabling the API involves creating a new project, contacting your Google representative, and enabling the Routes Preferred API in the API library."],["Make sure to check and adjust your quota limits as needed and create an API key for your project to use the Routes Preferred API."]]],[]]