入门
在 Duaer 里查高德路线规划
在 Duaer 里:高德地图:中国境内的驾车或步行路线,含距离、时间、过路费与步骤。一次成功查询用 1 额度。
能拿到什么
Duaer 数据市场里的「高德路线规划」:高德地图:中国境内的驾车或步行路线,含距离、时间、过路费与步骤。查到结果时用 1 额度,结果交给数字组织的下一个节点。
从节点创建器选 Duaer 数据 → 高德路线规划,或打开 数据市场。相关:高德地理编码、高德地点搜索。
适合做什么
- 估算从车站开车去机场要多久。
- 查两点之间的步行步骤。
在画布里检索
- 打开节点创建器,选 Duaer 数据 → Amap routes in China。
- 填 Origin(如 北京南站)、Destination(如 天安门);Mode(walking)、City(北京)可选。
- Limit 默认 10,最大 20。执行。
查到结果才扣 1 额度;没有结果、输入有误或上游失败都不扣。
用 API 调用
- GET https://api.duaer.com/v1/data/amap-route?origin=116.378888,39.865243&destination=116.397477,39.908692
- Authorization: Bearer <Duaer key>
下方是与数据市场「复制技能」相同的英文技能,含参数、示例与返回字段。
调用技能(英文)
与数据市场「复制技能」一致。
---
name: duaer-amap-route
description: >-
Duaer Amap routes in China. Amap: driving or walking routes in China with distance, time, tolls, and steps.
One successful search uses 1 Duaer credit.
---
# Duaer Amap routes in China
Duaer Amap routes in China plans driving or walking routes in mainland China between two coordinates or addresses. Duaer holds the upstream API key; you only send your Duaer key.
## When to use
- Estimate the drive from a station to an airport.
- Get walking steps between two points.
## When not to use
- Driving routes outside China. Use https://skills.duaer.com/driving-route.md.
- Coordinates only. Use https://skills.duaer.com/amap-geocode.md.
## Call
`GET https://api.duaer.com/v1/data/amap-route?origin=116.378888,39.865243&destination=116.397477,39.908692`
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 `origin` and `destination`.
- `origin` — Longitude,latitude such as 116.481028,39.989643, or a URL-encoded address.
- `destination` — Longitude,latitude or a URL-encoded address.
- `mode` — Optional. `driving` or `walking`. Default `driving`.
- `city` — Optional. City name or adcode used to find addresses.
- `limit` — Optional. Rows to return, from 1 to 20. Default 10.
## Examples
- `GET https://api.duaer.com/v1/data/amap-route?origin=116.378888,39.865243&destination=116.397477,39.908692` — drive from Beijing South Station to Tiananmen.
- `GET https://api.duaer.com/v1/data/amap-route?origin=120.155,30.274&destination=120.148,30.259&mode=walking` — a walk in Hangzhou.
## Result
The response is `{ "items": [...] }`. Each item has `source`, `title`, `url`, and `summary`, plus:
- `mode`, `rank`, `distanceMeters`, `durationMinutes`, `strategy` — route and Amap strategy.
- `tollsYuan`, `tollDistanceMeters`, `trafficLights`, `taxiCostYuan` — tolls, traffic lights, and estimated taxi fare.
- `origin`, `destination`, `steps` — coordinates used and turn-by-turn steps.
Driving returns up to three routes; an address is geocoded first in the same search.
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/amap-geocode.md — Duaer Amap geocoding in China
- https://skills.duaer.com/amap-poi.md — Duaer Amap places in China
常见问题
Duaer 的高德路线规划检索扣多少额度?
查到结果时扣 1 额度;没有结果或出错不扣。
Duaer 高德路线规划的起点可以填地址吗?
可以。填地址时 Duaer 会先在同一次查询里做地理编码,只扣 1 额度;City 可帮助找准地址。
同组