Amap Maps Get V3 Bus Lineid

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

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
idstringYes高德返回的线路 ID;不同方向可以使用不同 ID。—
outputenum (JSON | XML)No响应编码;建议使用 JSON。JSON
extensionsenum (base | all)Nobase 返回基本信息;all 同时返回详细信息。base

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_v3_bus_lineid' \
  --header "X-Api-Key: $AGENTEARTH_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "params": {
    "id": "900000258460"
  }
}'
Response exampleresponse.json
JSONPartial content
{
  "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.