Amap Maps Get V5 Direction Electrobike

1.00 credits/call
ae_amap_maps_get_v5_direction_electrobike

Plan electric-bicycle routes with Amap (高德), using access and restriction conditions that differ from ordinary cycling; this is not electric-car routing. Provide origin and destination in GCJ-02 longitude,latitude format, with at most six decimal places per coordinate. Optionally request one, two, or three route alternatives with alternative_route and select optional response field groups with show_fields (comma-separated; omitted means basic results only). The response includes business status and route data, which may include distance, duration, step instructions, road names, and route polylines depending on returned fields. Business success requires status="1" and infocode="10000", not merely an HTTP-success response. Supply sig only when account signature verification is enabled. output supports JSON; callback is optional and generally unnecessary for server-side calls.

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 回调名称;服务端工具调用通常不需要设置。—
destinationstringYesGCJ-02 经度,纬度;各最多六位小数。—
show_fieldsstringNo按官方返回字段组控制可选数据,多组以英文逗号分隔;省略时只返回基本结果。—
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_electrobike' \
  --header "X-Api-Key: $AGENTEARTH_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "params": {
    "destination": "118.605116,24.894369",
    "origin": "118.598679,24.934731",
    "output": "json"
  }
}'
Response exampleresponse.json
JSONPartial content
{
  "count": "1",
  "info": "OK",
  "infocode": "10000",
  "route": {
    "destination": "118.605116,24.894369",
    "origin": "118.598679,24.934731",
    "paths": [
      {
        "distance": "5687",
        "duration": "1344",
        "steps": [
          {
            "instruction": "沿花博路向西南骑行138米左转",
            "orientation": "西南",
            "road_name": "花博路",
            "step_distance": 138
          }
        ]
      }
    ]
  },
  "status": "1"
}

This example shows part of the response. Copied content is valid JSON.