> For the complete documentation index, see [llms.txt](https://doc.duaer.com/zh/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.duaer.com/zh/getting-started/places-nearby.md).

# 在 Duaer 里查附近地点

在 Duaer 里：OpenStreetMap：某坐标附近的咖啡馆、药店、医院、充电桩等地点，按距离由近到远。一次成功查询用 1 额度。
## 能拿到什么

Duaer 数据市场里的「附近地点」：OpenStreetMap：某坐标附近的咖啡馆、药店、医院、充电桩等地点，按距离由近到远。查到结果时用 1 额度，结果交给数字组织的下一个节点。

从节点创建器选 Duaer 数据 → 附近地点，或打开 [数据市场](/zh/getting-started/data-market.md)。相关：[地名查询](/zh/getting-started/geocoding.md)、[驾车路线](/zh/getting-started/driving-route.md)。

## 适合做什么

- 查找离酒店最近的药店。
- 列出办公室 500 米内的咖啡馆。

## 在画布里检索

1. 打开节点创建器，选 Duaer 数据 → Places nearby。
2. 填 Latitude 与 Longitude（如 51.5007 与 -0.1246）；Category（如 pharmacy）、Radius (m) 可选。
3. Limit 默认 10，最大 20。执行。

查到结果才扣 1 额度；没有结果、输入有误或上游失败都不扣。

## 用 API 调用

- GET https://api.duaer.com/v1/data/places-nearby?latitude=51.5007&longitude=-0.1246&category=pharmacy
- Authorization: Bearer <Duaer key>

下方是与数据市场「复制技能」相同的英文技能，含参数、示例与返回字段。

## 调用技能（英文）

与数据市场「复制技能」一致。

```
---
name: duaer-places-nearby
description: >-
  Duaer Places nearby. OpenStreetMap: cafes, pharmacies, hospitals, chargers, and other places near a point, nearest first.
  One successful search uses 1 Duaer credit.
---

# Duaer Places nearby

Duaer Places nearby asks OpenStreetMap for one category of place around a point and returns the nearest first, with address and opening hours when mapped.

## When to use

- Find the nearest pharmacy to a hotel.
- List cafes within 500 m of an office.

## When not to use

- Turning an address into coordinates. Use https://skills.duaer.com/geocoding.md.
- US EV charger details. Use https://skills.duaer.com/ev-stations.md.

## Call

`GET https://api.duaer.com/v1/data/places-nearby?latitude=51.5007&longitude=-0.1246&category=pharmacy`

Header: `Authorization: Bearer <Duaer key>`

Use an account key or a model API key.

Get a Duaer key: https://skills.duaer.com/keys.md

## Parameters

Provide `latitude` and `longitude`.

- `latitude`, `longitude` — Decimal degrees, such as 51.5007 and -0.1246.
- `category` — `cafe`, `restaurant`, `hospital`, `pharmacy`, `school`, `fuel`, `charging`, `parking`, `atm`, `bank`, `toilets`, `hotel`, `museum`, `park`, or `supermarket`. Default cafe.
- `radius` — Optional. Search radius in meters, 50 to 3000. Default 500.
- `limit` — Optional. Rows to return, from 1 to 20. Default 10.

## Examples

- `GET https://api.duaer.com/v1/data/places-nearby?latitude=51.5007&longitude=-0.1246&category=pharmacy&radius=1000` — pharmacies within 1 km of Westminster.
- `GET https://api.duaer.com/v1/data/places-nearby?latitude=1.2834&longitude=103.8607` — cafes near Marina Bay.

## Result

The response is `{ "items": [...] }`. Each item has `source`, `title`, `url`, and `summary`, plus:

- `name`, `category`, `distanceM` — place, kind, and meters away.
- `latitude`, `longitude`, `address` — location.
- `openingHours`, `phone`, `website`, `wheelchair` — details when mapped.
- `osmType`, `osmId` — OpenStreetMap element.

Fields without a value are left out.

## Credits

A search that returns at least one row uses 1 credit.
An empty search, a search that finds nothing, or a failed search uses 0.
Wrong input returns 400 with a message and uses 0.
No remaining credits returns 402 and does not search.
A missing key returns 401.

## Related

- https://skills.duaer.com/geocoding.md — Duaer Place lookup
- https://skills.duaer.com/driving-route.md — Duaer Driving route

```
## Questions

### Duaer 的附近地点检索扣多少额度？

查到结果时扣 1 额度；没有结果或出错不扣。

### Duaer 附近地点的数据准确吗？

数据来自志愿者维护的 OpenStreetMap，大城市覆盖较好；营业时间等细节可能缺失或过期。

## 相关

- [在 Duaer 里查地名查询](https://doc.duaer.com/zh/getting-started/geocoding.md)
- [在 Duaer 里查驾车路线](https://doc.duaer.com/zh/getting-started/driving-route.md)

