沿途搜索
search_along_routeFind gas stations, stores, charging points, or other targets along a driving route by setting start, end, and search radius. Returns nearby POIs sorted by distance from the start.
Instructions
沿驾车路线搜索目标 POI,返回沿途范围内的目标列表(按距起点的路程从近到远排序)。 origin 起点、destination 终点:都支持地址文本或「经度,纬度」。 distance 是沿途搜索半径(单位米):以驾车路线为中心线,向两侧各扩 distance 米的范围。例如 distance=2000 表示搜沿途左右各 2 公里。 target 是目标关键词,例如:加油站、商店、超市、山姆超市、服务区、充电站、餐厅。 实现方式:先用 /v3/direction/driving 拿到路线折线,再沿折线按间隔取采样点,对每个采样点做 /v3/place/around 周边搜索,最后按 POI 去重并排序。 需要先配置高德 Key,未配置时调用 set_amap_key 即可。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| city | No | 城市名。当地址有歧义时可指定 | |
| limit | No | 最多返回多少条 | |
| origin | Yes | 起点:地址文本或「经度,纬度」 | |
| target | Yes | 沿途要找的目标,如 加油站 / 商店 / 山姆超市 / 充电站 | |
| distance | No | 沿途搜索半径,单位米 | |
| destination | Yes | 终点:地址文本或「经度,纬度」 |