PlayableLocation

適合在位置遊戲中放置遊戲物件的地理點。

JSON 表示法
{
  "name": string,
  "types": [
    string
  ],
  "centerPoint": {
    object (LatLng)
  },
  "snappedPoint": {
    object (LatLng)
  },

  // Union field location_id can be only one of the following:
  "placeId": string,
  "plusCode": string
  // End of list of possible types for union field location_id.
}
欄位
name

string

必要欄位。此可播放位置的名稱。

types[]

string

此可播放位置的可播放位置類型集合。集合中的第一個類型是主要類型。

部分類型資訊可能不適用於部分可播放地區。

centerPoint

object (LatLng)

必要欄位。與可播放位置中心相關聯的經緯度。

根據預設,從 v3.samplePlayableLocations 傳回的可播放位置組合會使用中心點座標。

snappedPoint

object (LatLng)

可播放地點的座標,與最近道路的人行道對齊 (如果附近有道路)。

聯集欄位 location_id。必要欄位。每個地點都具備下列其中一種 ID:location_id 只能採用下列其中一種 ID:
placeId

string

地點 ID

plusCode

string

+ 代碼

LatLng

表示經緯度組合的物件。這個物件會同時指出經度和緯度的度數;除非另有說明,否則必須符合 WGS84 標準。此外,值必須在正規化範圍內。

JSON 表示法
{
  "latitude": number,
  "longitude": number
}
欄位
latitude

number

緯度度數,必須介於 [-90.0, +90.0] 的範圍之間。

longitude

number

經度度數,必須介於 [-180.0, +180.0] 的範圍之間。