LocationInfo

含有任何其他 ID 的位置。

JSON 表示法
{
  "point": {
    object (LatLng)
  },
  "place": string,
  "pointLocationSource": enum (PointSource)
}
欄位
point

object (LatLng)

位置座標。必須指定 pointplace 做為輸入內容。如果同時指定這兩個值,系統會使用 point 進行路由,並使用 place 處理中繼資料。如果只指定 place 做為輸入值,系統會從 place 計算 point,並將其納入輸出內容。

place

string

代表此位置的場景資源名稱。格式為 places/{place_id}。必須指定 pointplace 做為輸入內容。如果同時指定這兩個值,系統會使用 point 進行路由,並使用 place 處理中繼資料。只有在輸入內容中包含 place 時,輸出內容才會包含 place,也就是說,系統不會從 LatLng 執行 place 查詢。

這是實驗功能。

pointLocationSource

enum (PointSource)

僅供輸出。latlng point 欄位的來源。這是實驗功能的一部分。

PointSource

指出 LatLng 的來源。

列舉
POINT_SOURCE_UNSPECIFIED 未指定點狀來源。
POINT_SOURCE_DEVELOPER_PROVIDED LatLng 由開發人員明確提供。
POINT_SOURCE_CALCULATED_FROM_PLACE LatLng 是根據提供的位置計算得出。