Batch refresh realtime info for multiple (line, stop) pairs
bus_refresh_linesRefresh realtime bus arrival info for multiple line-stop pairs in a single API call. Ideal for updating a favorites dashboard with current vehicle positions and ETAs.
Instructions
Refresh realtime bus info for several (line, stop) pairs in one round-trip. Useful for a 'favourites' dashboard.
Args:
city_id (string, required)
line_stn (string, required): semicolon-separated quadruples Format: lineId,stopId,nextId,targetOrder;lineId,stopId,nextId,targetOrder;... 'nextId' may be empty between the two commas.
response_format ('markdown' | 'json')
Example: '21283603183,021-15232,,2;21283604388,021-8685,,4'
Returns (json): { "lines": [ { "line": { "lineId":"...", "name":"71", "direction":0, "endSn":"..." }, "depDesc": "...", "buses": [ { "busId":"...", "order":2, "capacity":0, "distanceToDest":881, "eta":{"travelTime":221,"arrivalTime":...} } ] } ] }
Soft cap: up to 10 quadruples per call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| city_id | Yes | ||
| line_stn | Yes | Quadruple list: lineId,stopId,nextId,targetOrder; separated by ';'. nextId may be empty. | |
| response_format | No | Output format: 'markdown' for human-readable text, 'json' for full structured data | markdown |