×

Vehicle arrival forecast at stop

This API provides the predicted arrival time of buses, trolleybuses, and minibuses at a specified stop.

How to get data

Method

 GET

Request address

To get the data, use the address: https://<server_address>/api/api.php?

Request parameters

  • cmd=stationForecast — command to get the arrival forecast
  • stopid — identifier of the stop (taken from the PILOT interface)
  • node — node number where the command should be executed
     

Example request

https://<server_address>/api/api.php?cmd=stationForecast&stopid=7400&node=1
Response
[
  {
    "curent_stop": 1,
    "line_id": 1371,
    "line_name": "№ 17 S. KALFA - PL. SUVOROVA - UL. GENERAL ZHIDILOVA",
    "line_num": "17",
    "line_type": "A",
    "this_stop": 32,
    "time": 4065,
    "vehicle": "BUS FLIGHT",
    "vehid": 48854
  }
]
The API returns an array of objects with forecasts for each route at the specified stop:
  • curent_stop — sequential number of the stop on the route where the vehicle is currently located
  • line_id — route ID
  • line_name — full name of the route
  • line_num — route number
  • line_type — type of route: 'A' — bus, 'T' — trolleybus, 'M' — minibus
  • this_stop — sequential number of this stop on the route
  • time — predicted arrival time at this stop (seconds)
  • vehicle — vehicle registration number
  • vehid — vehicle ID