latestSwagger 2.02026-08-10201771.8 KB

e0575f41ded3

Real Time Data

Next to Arrive

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.

get/NextToArrive/index.php

Query parameters

req1string required

Starting Regional Rail Station

req2string required

Ending Regional Rail Station

req3integer

Number of results to show

Response

success

orig_trainstring byte

Initial regional rail number of the train passing through the requested source station

orig_linestring

Initial regional rail line where the requested source station is

orig_departure_timestring

Departure time of the initial regional rail at the requested source station

orig_arrival_timestring

Arrival time of the regional rail at the requested destination or the connecting station

orig_delaystring byte

Current status of the intial regional rail

term_trainstring

Regional rail number of the connecting train towards the requested destination

term_linestring

Connecting regional rail line where the requested destination station is

term_depart_timestring

Departure time of the connecting regional rail from the connecting station

term_arrival_timestring

Arrival time of the connecting regional rail at the requested destination

Connectionstring

Connecting station name

term_delaystring byte

Current status of the connecting regional rail

isdirectboolean

Indicates if the journey is direct or not