Query Route Interface

View Markdown

Last edited on 2026-07-17

Query the configured bus/subway routes.

1. Request Parameters

Parameter Name Type Required Notes
type int Y Type: 0-Metro, 1-Bus

2. Response Parameters

Parameter Name Type Required Description
errcode int Y Error code
errmsg string Y Error message
results object N Route information

The content of results is as follows:

Parameter Name Type Required Description
line_list array Y Route information

The content of each item in results.line_list is as follows:

Parameter Name Type Required Description
id int Y Unique ID of the route
start_station string Y Starting station
end_station string Y Ending station
line_name string Y Route name