train_schedule
Retrieve scheduled SEPTA Regional Rail trains between two stations for a chosen date and departure window, returning direct trips or one-transfer alternatives.
Instructions
Scheduled Regional Rail trains from one station to another on a given day.
Args: from_station: Boarding station, e.g. "Jefferson", "30th Street", "Swarthmore". to_station: Destination station. date: "today", "tomorrow", a weekday name ("saturday" = the next Saturday, or today if it is Saturday), or YYYY-MM-DD. depart_after: Earliest departure, e.g. "05:00" or "7:30 AM". Defaults to now when the date is today, otherwise start of day. For "morning" use 05:00–12:00, "afternoon" 12:00–17:00, "evening" 17:00–23:59. depart_before: Latest departure. Defaults to end of service day. max_results: Cap on trains returned.
Returns direct trains (train number, departure, arrival, line). If there are no direct trains, returns one-transfer itineraries instead. Times are scheduled, not live; for trips in the next hour or so, also call next_trains for delays.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | today | |
| to_station | Yes | ||
| max_results | No | ||
| depart_after | No | ||
| from_station | Yes | ||
| depart_before | No |