# Place

> Google 地圖上的一家商戶：名稱、類別、地址、電話、網站、評分、營業時間和座標。只有商戶公開資訊。

網頁版：https://okdata.online/zh/docs/objects/place/

所有平台同一種結構。平台沒有的欄位為 null，meta.unavailable 會說明原因。用 fields= 只取需要的欄位。

| 欄位 | 型別 | 說明 |
|---|---|---|
| `id` | string | Google 的地點 ID。 |
| `name` | string | 商戶名稱。 |
| `url` | string \| null | Google 地圖上的地點頁。 |
| `category` | string \| null | 主類別，Google 原文。 |
| `categories` | string[] \| null | 所有類別。 |
| `address` | string \| null | 地址。 |
| `phone` | string \| null | 商戶電話。 |
| `website` | string \| null | 商戶官網。 |
| `rating` | number \| null | 平均星級，1 到 5。 |
| `reviews` | integer \| null | 評價數。 |
| `price_level` | string \| null | 價位（如「$$」），Google 顯示的話。 |
| `latitude` | number \| null | 緯度。 |
| `longitude` | number \| null | 經度。 |
| `hours` | object \| null | 按星期的營業時間，Google 原文。 |
| `open_state` | string \| null | 抓取時是否營業，Google 原文。 |
| `description` | string \| null | Google 對這家店的簡介。 |
| `thumbnail_url` | string \| null | 照片。 |
| `rank` | integer \| null | 在結果裡的位置，從 1 開始。 |
| `ext` | object | 平台特有欄位，只在 view=full 時返回。 |

## 返回 Place 的介面

- [Google 地圖商戶搜尋](https://okdata.online/zh/apis/google/maps/places/search/) (`google.maps.places.search`): $0.005/次 · 每頁約 20 條結果

## 各 view 返回的欄位

每一級 view 都包含上一級的欄位。`view=compact` 最精簡；`full` 會在 `ext` 里加上平台特有欄位。

- compact：`id`, `name`, `url`, `category`, `address`, `phone`, `website`, `rating`, `reviews`, `rank`
- standard：`categories`, `price_level`, `latitude`, `longitude`, `hours`, `open_state`, `description`, `thumbnail_url`
- full：`ext`
