timetable-api-node 1.6.3 → 1.7.1

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.
Files changed (2) hide show
  1. package/README.md +5 -5
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -264,12 +264,12 @@ Each end covers every stop within a 300 m walk (`stop_ids`): a line's two direct
264
264
  {
265
265
  "id": "101", "name": "Університет", "lat": 49.841, "lng": 24.003,
266
266
  "departures": ["05:30", "05:52"],
267
- "schedule": { "workday": ["05:30", "05:52", "06:10"], "weekend": ["07:00", "07:30"] }
267
+ "schedule": { "workday": ["05:30", "05:52", "06:10"], "saturday": ["07:00", "07:30"], "sunday": ["07:00"], "weekend": ["07:00", "07:30"] }
268
268
  },
269
- { "id": "707", "name": "Стадіон Сільмаш", "lat": 49.838, "lng": 24.021, "departures": [], "schedule": { "workday": [], "weekend": [] } }
269
+ { "id": "707", "name": "Стадіон Сільмаш", "lat": 49.838, "lng": 24.021, "departures": [], "schedule": { "workday": [], "saturday": [], "sunday": [], "weekend": [] } }
270
270
  ],
271
271
  [
272
- { "id": "707", "name": "Стадіон Сільмаш", "lat": 49.838, "lng": 24.021, "departures": ["06:00"], "schedule": { "workday": ["06:00"], "weekend": [] } }
272
+ { "id": "707", "name": "Стадіон Сільмаш", "lat": 49.838, "lng": 24.021, "departures": ["06:00"], "schedule": { "workday": ["06:00"], "saturday": [], "sunday": [], "weekend": [] } }
273
273
  ]
274
274
  ],
275
275
  "updated_at": "2026-09-23T09:01:12Z"
@@ -280,7 +280,7 @@ Each end covers every stop within a 300 m walk (`stop_ids`): a line's two direct
280
280
  }
281
281
  ```
282
282
 
283
- `stops[0]` is direction 0 (outbound), `stops[1]` direction 1 (return). `departures` and `schedule` are populated for the **first stop of each direction**; other stops have empty arrays. `schedule.workday` is Monday–Friday, `schedule.weekend` Saturday–Sunday; `departures` keeps today's schedule for backward compatibility. With `include_shapes: true`, `data.shapes` holds one `[lat, lng]` polyline per direction and the map block adds `"polylines": "data.shapes"`.
283
+ `stops[0]` is direction 0 (outbound), `stops[1]` direction 1 (return). `departures` and `schedule` are populated for the **first stop of each direction**; other stops have empty arrays. `schedule.workday` is Monday–Friday, `schedule.saturday` / `schedule.sunday` the two weekend days (they can differ); `schedule.weekend` merges both and is kept for backward compatibility; `departures` keeps today's schedule for backward compatibility. With `include_shapes: true`, `data.shapes` holds one `[lat, lng]` polyline per direction and the map block adds `"polylines": "data.shapes"`.
284
284
 
285
285
  </details>
286
286
 
@@ -489,7 +489,7 @@ Route shape, stop list, and metadata. Long-cached (30 days).
489
489
  - **Response:** `{ id, color, type, route_short_name, route_long_name, stops: [[dir0…], [dir1…]], shapes }`.
490
490
  - Each stop object: `{ code, name, loc, transfers, departures, schedule }`.
491
491
  - `departures` — today's departure times (HH:MM), populated only for direction 0 first stop. Kept for backward compatibility.
492
- - `schedule` — `{ workday: string[], weekend: string[] }` departure times by day type, populated only for direction 0 first stop.
492
+ - `schedule` — `{ workday: string[], saturday: string[], sunday: string[], weekend: string[] }` departure times by day type (`weekend` = Saturday ∪ Sunday, deprecated), populated only for direction 0 first stop.
493
493
 
494
494
  #### `GET /routes/dynamic/:name`
495
495
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "timetable-api-node",
3
- "version": "1.6.3",
3
+ "version": "1.7.1",
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.js",
6
6
  "type": "module",