Get data an arrival forecast for a stop
Example:
https://<address>/api/api.php?cmd=stationForecast
Parameters:
cmd: stationForecast
stopid: stop ID (taken from the list of stops in the PILOT interface)
Request:
https://<address>/api/api.php?cmd=stationForecast&stopid=7400
Response:
Array with predicted arrivals of buses of different lines to this stop
[
{
"current_stop": 1, // Sequence number of the stop in the route where the vehicle is currently located
"line_id": 1371, // Route ID
"line_name": "№ 17 S. KALFA - PL. SUVOROVA - UL. GENERALA ZHIDILOVA", // Route name
"line_num": "17", // Route number
"line_type": "A" // Type route ('A' - bus, 'T' - trolleybus, 'M' - minibus)
"this_stop": 32, // The ordinal number of this stop in the route
"time": 4065, // Time until arrival at this stop in seconds
"vehicle": "BUS FLIGHT",// Vehicle registration number
"vehid": 48854 // Vehicle ID
}
]