Get Nearby Vehicles
get_nearby_vehiclesReturns live vehicles near a point, nearest first, each with its route, destination, and distance. Use when the user asks "what transport is near me right now?" or wants a live map around a location. Narrow with route when the user cares about one line; prefer get_route_realtime for a whole route and get_stop_realtime for arrival times at a stop. Requires decimal latitude and longitude (WGS84).
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": {
"latitude": "<latitude>",
"longitude": "<longitude>"
},
"name": "get_nearby_vehicles"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum vehicles to return, nearest first (1–50, default 15). `total` reports how many were in range. | |
| route | No | Only vehicles on this route, by short name (e.g. "Т30", "А1"). Omit for all routes. | |
| latitude | Yes | Decimal latitude of the centre point, WGS84 (e.g. 49.842 for central Lviv). | |
| longitude | Yes | Decimal longitude of the centre point, WGS84 (e.g. 24.031 for central Lviv). | |
| lowfloor_only | No | Only low-floor vehicles (step-free: wheelchairs, prams). Timetable entries without a tracked vehicle are left out, since their floor is unknown. Default false. | |
| radius_meters | No | Search radius in metres (100–1000, default 500). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| view | Yes | ||
| ui_blocks | Yes |