Next same-trip trains or buses between two stations
trip_betweenNext NJ Transit trains/buses from origin to destination on the SAME trip (no transfers). Returns departure, arrival and duration. Times ET. system: 'nj_transit' (default, rail + light rail) or 'nj_bus' (bus, scheduled only in v1.2).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| origin | Yes | ||
| system | No | nj_transit | |
| destination | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||