Plus Code 类似于没有实际地址的人物或地点的街道地址。Plus Code 基于纬度和经度,以数字和字母形式显示,而不是以街道名称和门牌号开头的地址。
计算路由响应现在包含 geocodingResults 数组。对于请求中指定为地址字符串或 Plus Code 的每个位置(出发地、目的地或中间航点),API 会执行地点 ID 查询。此数组的每个元素都包含与某个营业地点对应的地点 ID 以及有关该营业地点的其他元数据。请求中指定为地点 ID 或纬度/经度坐标的位置会被忽略。
现有预览版功能的变化
现在,您必须通过向请求添加新的数组 extraComputations 字段,在 Google Analytics(分析)中明确启用以下功能:
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["没有我需要的信息","missingTheInformationINeed","thumb-down"],["太复杂/步骤太多","tooComplicatedTooManySteps","thumb-down"],["内容需要更新","outOfDate","thumb-down"],["翻译问题","translationIssue","thumb-down"],["示例/代码问题","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2024-06-26。"],[[["The Routes API has transitioned from Preview to General Availability (GA), introducing new features and changes to existing ones."],["You can now specify locations using address strings and Plus Codes in addition to place IDs and coordinates."],["Toll info, fuel consumption, and traffic on a polyline now require explicit enablement using the `extraComputations` field in requests."],["The `geocodingResults` array has been added to the response, providing place IDs and metadata for locations specified as address strings or Plus Codes."],["Existing implementations relying on implicit inclusion of toll info, fuel consumption, or traffic on a polyline data need to be updated to utilize the `extraComputations` field."]]],[]]