Get approaching bus location
get_approaching_bus_locationFind live GPS locations of buses approaching a specific stop on a route; supply city code, route ID, and stop ID to track arrival progress.
Instructions
Get live GPS locations of buses on a route currently approaching a specific stop. For all vehicles on the route regardless of stop, use get_route_bus_locations instead.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"cityCode": "<cityCode>",
"routeId": "<routeId>",
"nodeId": "<nodeId>"
},
"name": "get_approaching_bus_location"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number (1-1000); defaults to 1 | |
| nodeId | Yes | City bus stop ID (nodeid) returned by find_bus_stops or find_nearby_bus_stops | |
| routeId | Yes | City bus route ID (routeid) returned by find_bus_routes or list_stop_routes | |
| cityCode | Yes | TAGO city code from a city-list tool, including list_pm_providers for personal mobility | |
| pageSize | No | Maximum items per page (1-100); defaults to 10 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | ||
| sourceUrl | Yes | ||
| catalogUrl | Yes | ||
| observedAt | Yes | ||
| totalCount | Yes | ||
| sourceService | Yes |