LocationInfo
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
JSON 表示法 |
{
"point": {
object (LatLng )
},
"place": string,
"pointLocationSource": enum (PointSource )
} |
欄位 |
point |
object (LatLng )
位置座標。必須指定 point 或 place 做為輸入內容。如果同時指定這兩個值,系統會使用 point 進行路由,並使用 place 處理中繼資料。如果只指定 place 做為輸入值,系統會從 place 計算 point ,並將其納入輸出內容。
|
place |
string
代表此位置的場景資源名稱。格式為 places/{place_id} 。必須指定 point 或 place 做為輸入內容。如果同時指定這兩個值,系統會使用 point 進行路由,並使用 place 處理中繼資料。只有在輸入內容中包含 place 時,輸出內容才會包含 place ,也就是說,系統不會從 LatLng 執行 place 查詢。 這是實驗功能。
|
pointLocationSource |
enum (PointSource )
僅供輸出。latlng point 欄位的來源。這是實驗功能的一部分。
|
PointSource
列舉 |
POINT_SOURCE_UNSPECIFIED |
未指定點狀來源。 |
POINT_SOURCE_DEVELOPER_PROVIDED |
LatLng 由開發人員明確提供。 |
POINT_SOURCE_CALCULATED_FROM_PLACE |
LatLng 是根據提供的位置計算得出。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-06-02 (世界標準時間)。
[[["容易理解","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-06-02 (世界標準時間)。"],[[["Location is represented in JSON format using a `point` object."],["The `point` object contains latitude and longitude coordinates within a `LatLng` object, providing geographical location data."]]],[]]