---
title: "Next to Arrive"
method: GET
path: "/NextToArrive/index.php"
tags: ["Real Time Data"]
---

# Next to Arrive

`GET /NextToArrive/index.php`

Returns departure and arrival times between two different stations. Please refer to the <a href='/VIRegionalRail.html'>Regional Rail Inputs</a> page to see all valid inputs.

## Query parameters

- `req1` string, required
- `req2` string, required
- `req3` integer

## Response `200`

success

- object[]
  - `orig_train` string, byte — Initial regional rail number of the train passing through the requested source station
  - `orig_line` string — Initial regional rail line where the requested source station is
  - `orig_departure_time` string — Departure time of the initial regional rail at the requested source station
  - `orig_arrival_time` string — Arrival time of the regional rail at the requested destination or the connecting station
  - `orig_delay` string, byte — Current status of the intial regional rail
  - `term_train` string — Regional rail number of the connecting train towards the requested destination
  - `term_line` string — Connecting regional rail line where the requested destination station is
  - `term_depart_time` string — Departure time of the connecting regional rail from the connecting station
  - `term_arrival_time` string — Arrival time of the connecting regional rail at the requested destination
  - `Connection` string — Connecting station name
  - `term_delay` string, byte — Current status of the connecting regional rail
  - `isdirect` boolean — Indicates if the journey is direct or not

---

[API](https://skmtc.net/septa/apis/septa-developers.md) · [All operations](https://skmtc.net/septa/apis/septa-developers/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/septa/septa-developers/revisions/e0575f41ded3/schema)
