Get route bus locations
get_route_bus_locationsRetrieves current GPS locations of all buses on a specified city bus route, enabling users to track vehicle positions along that route.
Instructions
Get current reported GPS locations of all buses on a city bus route. For buses approaching one stop, use get_approaching_bus_location. observedAt is query time.
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>"
},
"name": "get_route_bus_locations"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number (1-1000); defaults to 1 | |
| 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 |