Plus Code 就像是街道地址,適用於沒有實際地址的人或地點。Plus code 是以經緯度為依據,並以數字和字母顯示,而非街道名稱和號碼。
計算路線回應現在包含 geocodingResults 陣列。對於要求中以地址字串或 Plus Code 指定的每個位置 (起點、目的地或中途停靠點),API 都會執行地點 ID 查詢。這個陣列的每個元素都包含與位置相應的地點 ID,以及位置的其他中繼資料。系統會忽略要求中指定為地點 ID 或經緯度座標的位置。
現有預先發布版功能的異動
您現在必須在正式發布的 GA 中,將新的陣列 extraComputations 欄位新增至要求,明確啟用下列功能:
[[["容易理解","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"]],["上次更新時間:2025-07-22 (世界標準時間)。"],[[["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."]]],["The Routes API's GA release introduces new location specification options, including address strings and Plus Codes, and includes a `geocodingResults` array in the response. To enable toll info, fuel consumption, and traffic on a polyline, users must now set the `extraComputations` array in their requests. `extraComputations` values are \"TOLLS\", \"FUEL_CONSUMPTION\", and \"TRAFFIC_ON_POLYLINE\". The field mask must still be used. Certain fields will be omitted in the response unless enabled by `extraComputations`.\n"]]