# 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`
