timetable-api-node 1.8.3 → 1.8.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/INTEGRATION.md CHANGED
@@ -110,11 +110,11 @@ All tools are read-only. Argument names are **exact** — pass them as shown.
110
110
  |------|-----------|---------|
111
111
  | `search_stops` | `query` (string), `limit` (int 1–25, optional) | Stop IDs by name — Ukrainian or English, partial, inflection-tolerant. |
112
112
  | `get_stops_around_location` | `latitude`, `longitude` (numbers), `radius_meters` (int 50–3000, optional) | Stop IDs near a coordinate, with serving routes. |
113
- | `get_stop_realtime` | `stop_id` (number or digit string) | Live arrivals at a stop: route, destination, minutes to arrival. |
114
- | `find_routes_between` | `from_stop_id`, `to_stop_id` | Routes from A to B, direct or with one interchange in a nearby-stop cluster: where to board, transfer and get off. |
113
+ | `get_stop_realtime` | `stop_id` (number or digit string), `lowfloor_only` (bool, optional) | Live arrivals at a stop: route, destination, minutes to arrival; `scheduled: true` marks timetable entries. |
114
+ | `find_routes_between` | `from_stop_id` or `from_lat` + `from_lng`; `to_stop_id` or `to_lat` + `to_lng`; `depart_at` or `arrive_by` (optional, `"HH:MM"` Lviv time or ISO 8601) | Routes from A to B, direct or with one interchange in a nearby-stop cluster: where to board, transfer and get off, live next departures, and a timetable estimate of when to leave and arrive. |
115
115
  | `get_route_static` | `route_name` (string, e.g. `"T30"`), `include_shapes` (bool, optional) | Stop lists (both directions), first-stop timetable; polylines on request. |
116
- | `get_route_realtime` | `route_name` (string) | Live vehicles on a route with destination and next stop. |
117
- | `get_nearby_vehicles` | `latitude`, `longitude` (numbers), `radius_meters`, `route`, `limit` (optional) | Live vehicles near a coordinate, nearest first. |
116
+ | `get_route_realtime` | `route_name` (string), `direction` (0 or 1, optional) | Live vehicles on a route with destination and next stop; live gaps and timetable headway per direction. |
117
+ | `get_nearby_vehicles` | `latitude`, `longitude` (numbers), `radius_meters`, `route`, `limit`, `lowfloor_only` (optional) | Live vehicles near a coordinate, nearest first. |
118
118
  | `get_vehicle_info` | `vehicle_id` (string) | One vehicle: route, destination, plate, upcoming stops with names. |
119
119
  | `get_disruptions` | `route` (string), `stop_id` (optional) | Announced closures, detours and moved stops in force today. Stop, route and trip tools also add a `disruptions` array when one applies — mention it to the user. |
120
120
 
package/README.md CHANGED
@@ -188,13 +188,13 @@ All tools are read-only. Stop IDs are the numeric codes on stop signs, returned
188
188
 
189
189
  | Tool | Arguments | Returns |
190
190
  |------|-----------|---------|
191
- | `search_stops` | `query` (string, ≥ 2 chars), `limit` (1–25, default 10) | Stops whose Ukrainian or English name contains every query word (inflection-tolerant: `"опера"` finds «Театр опери та балету»), with `routes`. |
191
+ | `search_stops` | `query` (string, ≥ 2 chars), `limit` (1–25, default 10) | Stops whose Ukrainian or English name contains every query word (inflection-tolerant: `"опера"` finds «Театр опери та балету»; punctuation and Latin look-alike letters are ignored, so `"пл. ринок"` and `"Cихiв"` match), with `routes`. |
192
192
  | `get_stops_around_location` | `latitude`, `longitude`, `radius_meters` (50–3000, default 1000) | Stops near a point, nearest first, with `distance_meters` and `routes`. |
193
- | `get_stop_realtime` | `stop_id` | Live arrivals: `route`, `direction` (destination), `vehicle_type`, `arrival_minutes`, vehicle position. |
194
- | `find_routes_between` | `from_stop_id`, `to_stop_id` | Routes within a 300 m walk of each end, best first: direct `options` (`board_stop`, `alight_stop`, `destination`, `stops_count`, walk at each end) and `transfer_options` with exactly one interchange inside a 300 m stop cluster. |
193
+ | `get_stop_realtime` | `stop_id`, `lowfloor_only` (default false) | Live arrivals: `route`, `direction` (destination), `vehicle_type`, `arrival_minutes`, vehicle position, `lowfloor`; `scheduled: true` marks timetable entries shown when no vehicle is predicted. |
194
+ | `find_routes_between` | `from_stop_id` or `from_lat` + `from_lng`; `to_stop_id` or `to_lat` + `to_lng`; `depart_at` or `arrive_by` (`"HH:MM"` Lviv time or ISO 8601, default now) | Routes within a 300 m walk of each stop end (600 m of a point), best first: direct `options` (`board_stop`, `alight_stop`, `destination`, `stops_count`, walk at each end) and `transfer_options` with exactly one interchange inside a 300 m stop cluster. Each option carries `schedule` (timetable estimate: `leave_at`, per-leg `board_at`/`alight_at`, `arrive_at`, `total_minutes`) and, when planning for now, `next_departures` (live, from the boarding stop). Suspended routes and stops a detour skips are left out; `walk_meters` when the ends are a short walk apart. |
195
195
  | `get_route_static` | `route_name`, `include_shapes` (default false) | Name, type, colour, stop lists for both directions, first-stop timetable; polylines only on request. |
196
- | `get_route_realtime` | `route_name` | Vehicles on the route with `destination` and `next_stop` (`id`, `name`, ISO `arrival`). |
197
- | `get_nearby_vehicles` | `latitude`, `longitude`, `radius_meters` (100–1000, default 500), `route`, `limit` (1–50, default 15) | Live vehicles nearest first, with `destination` and `distance_meters`; `total` counts all in range. |
196
+ | `get_route_realtime` | `route_name`, `direction` (0 or 1, optional) | Vehicles on the route with `destination` and `next_stop` (`id`, `name`, ISO `arrival`); `headways` per direction: vehicle count, live `gaps_minutes` front to back, `scheduled_headway_minutes`. |
197
+ | `get_nearby_vehicles` | `latitude`, `longitude`, `radius_meters` (100–1000, default 500), `route`, `limit` (1–50, default 15), `lowfloor_only` (default false) | Live vehicles nearest first, with `destination` and `distance_meters`; `total` counts all in range. |
198
198
  | `get_vehicle_info` | `vehicle_id` | One vehicle: position, route, `destination`, plate, upcoming stops (`id`, `name`, ISO times) not yet passed. |
199
199
  | `get_disruptions` | `route`, `stop_id` (both optional) | Announced closures, detours (`detour.via` streets) and moved stops in force today. `get_stop_realtime`, `get_route_static`, `get_route_realtime` and `find_routes_between` also add a `disruptions` array when one touches their routes or stops. |
200
200
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "timetable-api-node",
3
- "version": "1.8.3",
3
+ "version": "1.8.5",
4
4
  "description": "Lviv (Ukraine) public transport REST API and read-only Model Context Protocol (MCP) server: stops, timetables, routes, live vehicle positions, GTFS/GTFS-RT. No API key required.",
5
5
  "main": "index.ts",
6
6
  "type": "module",