Amap Maps Get V3 Bus Lineid
Look up a bus line direction using Amap (高德) data. Provide a nonempty Amap bus line id; different directions may use different IDs. extensions defaults to base for basic information; choose all to request details such as stops and first/last service times. output accepts JSON (default, recommended) or XML. The response includes a buslines list, count, and business-status fields; available line details may include the name, direction, endpoints, operator, stops, service times, distance, and route geometry. Check status="1" and infocode="10000" for business success, even after an HTTP-success response. This tool looks up known line IDs; it does not search by line name or provide live vehicle positions.
Pricing
| Condition | Charge |
|---|---|
| Each call | 1.00 credits/call |
Parameters
Optional parameters use the platform defaults when omitted.
| Parameter | Type | Required | Description | Default |
|---|---|---|---|---|
id | string | Yes | 高德返回的线路 ID;不同方向可以使用不同 ID。 | — |
output | enum (JSON | XML) | No | 响应编码;建议使用 JSON。 | JSON |
extensions | enum (base | all) | No | base 返回基本信息;all 同时返回详细信息。 | base |
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_v3_bus_lineid' \
--header "X-Api-Key: $AGENTEARTH_API_KEY" \
--header 'Content-Type: application/json' \
--data-raw '{
"params": {
"id": "900000258460"
}
}'{
"buslines": [
{
"id": "900000258460",
"name": "1路(首钢园公交场站--四惠枢纽站)",
"type": "普通公交"
}
],
"count": "1",
"info": "OK",
"infocode": "10000",
"status": "1"
}This example shows part of the response. Copied content is valid JSON.

