Amap Maps Get V5 Direction Walking

1.00 credits/call
ae_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.

Maps
1.00 credits/call

Pricing

1.00 credits/call
ConditionCharge
Each call1.00 credits/call

Parameters

Optional parameters use the platform defaults when omitted.

ParameterTypeRequiredDescriptionDefault
sigstringNo仅账号启用了数字签名校验时提供,按高德签名规则计算。—
originstringYesGCJ-02 经度,纬度;各最多六位小数。—
outputenum (json)No返回 JSON。json
callbackstringNo可选 JSONP 回调名称;服务端工具调用通常不需要设置。—
isindoorenum (0 | 1)No0 不需要室内算路,1 需要。0
origin_idstringNo起点 POI ID。—
destinationstringYesGCJ-02 经度,纬度;各最多六位小数。—
show_fieldsstringNo按官方返回字段组控制可选数据,多组以英文逗号分隔;省略时只返回基本结果。—
destination_idstringNo终点 POI ID。—
alternative_routeenum (1 | 2 | 3)No返回前一、二或三条备选路线;省略时由上游返回默认方案。—

Invocation example

Copy the request and explore its response example.

POST/agent-api/v1/tool/executeX-Api-Key
Request coderequest.sh
curl --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"
  }
}'
Response exampleresponse.json
JSONPartial content
{
  "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.