Amap Maps Get V5 Direction Walking
Plan a walking route with Amap (Gaode). Provide both origin and destination as GCJ-02 coordinates in longitude,latitude order, with at most six decimal places per component; optional POI IDs do not replace these coordinates. Results include route distances and step-by-step walking instructions. Use show_fields to request optional duration, navigation actions, and route polylines; without it, only basic results are returned. You may request 1–3 alternative routes and enable indoor routing with isindoor=1. Check the returned business status: status='1' and infocode='10000' indicate success; HTTP success alone is insufficient.
Pricing
| Condition | Charge |
|---|---|
| Each call | 1.00 credits/call |
Parameters
Optional parameters use the platform defaults when omitted.
| Parameter | Type | Required | Description | Default |
|---|---|---|---|---|
sig | string | No | 仅账号启用了数字签名校验时提供,按高德签名规则计算。 | — |
origin | string | Yes | GCJ-02 经度,纬度;各最多六位小数。 | — |
output | enum (json) | No | 返回 JSON。 | json |
callback | string | No | 可选 JSONP 回调名称;服务端工具调用通常不需要设置。 | — |
isindoor | enum (0 | 1) | No | 0 不需要室内算路,1 需要。 | 0 |
origin_id | string | No | 起点 POI ID。 | — |
destination | string | Yes | GCJ-02 经度,纬度;各最多六位小数。 | — |
show_fields | string | No | 按官方返回字段组控制可选数据,多组以英文逗号分隔;省略时只返回基本结果。 | — |
destination_id | string | No | 终点 POI ID。 | — |
alternative_route | enum (1 | 2 | 3) | No | 返回前一、二或三条备选路线;省略时由上游返回默认方案。 | — |
Invocation example
Copy the request and explore its response example.
/agent-api/v1/tool/executeX-Api-Keycurl --request POST \
--url 'https://agentearth.ai/agent-api/v1/tool/execute?tool_name=ae_amap_maps_get_v5_direction_walking' \
--header "X-Api-Key: $AGENTEARTH_API_KEY" \
--header 'Content-Type: application/json' \
--data-raw '{
"params": {
"alternative_route": 1,
"destination": "120.319365,36.061686",
"origin": "120.335957,36.057303",
"output": "json",
"show_fields": "cost"
}
}'{
"count": "1",
"info": "OK",
"infocode": "10000",
"route": {
"destination": "120.319365,36.061686",
"origin": "120.335957,36.057303",
"paths": [
{
"cost": {
"duration": "1615"
},
"distance": "2019",
"steps": [
{
"cost": {},
"instruction": "向东南步行4米右转",
"orientation": "东南",
"road_name": "",
"step_distance": "4"
}
]
}
]
},
"status": "1"
}This example shows part of the response. Copied content is valid JSON.

