Routes Preferred API 目前仅适用于部分客户。如需了解详情,请
与销售人员联系。
使用入门
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
您必须先启用 Routes Preferred API 方法,然后才能在代码中使用它们。
要为您的项目启用 Routes Preferred API 方法,请执行以下操作:
登录 Cloud Console 并选择项目选择标签页:
![选择项目选择标签页](https://developers-dot-devsite-v2-prod.appspot.com/static/maps/documentation/routes_preferred/images/project_selection.png?authuser=1&hl=zh-cn)
在 Select from 窗口中,选择 New Project。
![选择“新建项目”](https://developers-dot-devsite-v2-prod.appspot.com/static/maps/documentation/routes_preferred/images/new_project.png?authuser=1&hl=zh-cn)
指定项目的名称和位置,然后选择创建。
![创建项目](https://developers-dot-devsite-v2-prod.appspot.com/static/maps/documentation/routes_preferred/images/create_project.png?authuser=1&hl=zh-cn)
请与您的 Google 代表联系。
如果您尚未为项目启用 Routes Preferred API,请前往 Google Cloud 控制台中的“API 和服务库”。如果已启用“首选路线”,则可以跳过此步骤。
![前往媒体库](https://developers-dot-devsite-v2-prod.appspot.com/static/maps/documentation/routes_preferred/images/navigate_library.png?authuser=1&hl=zh-cn)
然后搜索 Routes Preferred,打开 Routes Preferred API。
![开放式 API](https://developers-dot-devsite-v2-prod.appspot.com/static/maps/documentation/routes_preferred/images/open_api.png?authuser=1&hl=zh-cn)
如需启用该 API,请选择启用。
如果您还没有与项目关联的 API 密钥,请前往“凭据”标签页。如果您已有 API 密钥,则可以跳过此步骤。
![转到“凭据”标签页](https://developers-dot-devsite-v2-prod.appspot.com/static/maps/documentation/routes_preferred/images/go_credentials.png?authuser=1&hl=zh-cn)
选择创建凭据,然后选择 API 密钥。
![选择 API 密钥](https://developers-dot-devsite-v2-prod.appspot.com/static/maps/documentation/routes_preferred/images/api_key.png?authuser=1&hl=zh-cn)
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-06-26。
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"没有我需要的信息"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"太复杂/步骤太多"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"内容需要更新"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻译问题"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"示例/代码问题"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"其他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"易于理解"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"解决了我的问题"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"其他"
}]