Amap Maps Get V5 Direction Bicycling
1.00积分/次
ae_amap_maps_get_v5_direction_bicycling
使用高德(Amap)规划自行车路线。必须提供起点 origin 和终点 destination,均为 GCJ-02 坐标字符串,按“经度,纬度”填写,每项最多六位小数。业务成功时返回路线距离和分段骑行指引;可通过 show_fields 请求耗时、路线坐标等可选数据,省略时仅返回基本结果。alternative_route 可请求 1、2 或 3 条路线,省略时使用高德默认方案。仅在账号启用数字签名校验时提供 sig。响应包含业务状态及错误信息,须检查 status="1" 且 infocode="10000",不能仅凭 HTTP 成功判断路线规划成功。
1.00积分/次
价格说明
1.00积分/次
API 调用
通过统一工具网关发起同步请求,鉴权和计费由 AgentEarth 处理。
cURL
curl --request POST \
--url 'https://agentearth.ai/agent-api/v1/tool/execute?tool_name=ae_amap_maps_get_v5_direction_bicycling' \
--header "X-Api-Key: $AGENTEARTH_API_KEY" \
--header 'Content-Type: application/json' \
--data-raw '{
"params": {
"origin": "xxx",
"destination": "xxx"
}
}'- 请求方式
- POST
- 接口地址
- /agent-api/v1/tool/execute
- 鉴权方式
- X-Api-Key
- 超时时间
- 60 秒
响应示例
{
"error_no": 0,
"error_msg": "",
"result": [
{
"type": "text",
"text": "xxx"
}
],
"platform_annotations": {
"source": "AgentEarth",
"platform_note": "xxx",
"platform_suggestion": "xxx"
}
}工具参数
未传入的可选参数将使用平台默认值。
| 参数 | 类型 | 必填 | 说明 | 默认值 |
|---|---|---|---|---|
sig | string | 否 | 仅账号启用了数字签名校验时提供,按高德签名规则计算。 | — |
origin | string | 是 | GCJ-02 经度,纬度;各最多六位小数。 | — |
output | enum (json) | 否 | 返回 JSON。 | json |
callback | string | 否 | 可选 JSONP 回调名称;服务端工具调用通常不需要设置。 | — |
destination | string | 是 | GCJ-02 经度,纬度;各最多六位小数。 | — |
show_fields | string | 否 | 按官方返回字段组控制可选数据,多组以英文逗号分隔;省略时只返回基本结果。 | — |
alternative_route | enum (1 | 2 | 3) | 否 | 返回前一、二或三条备选路线;省略时由上游返回默认方案。 | — |

