Getting bus status
Example:
https://<address>/api/api.php?cmd=currentBusState
Parameter:
cmd:currentBusState
vehnum: state. bus numbers
Request:
https://<address>/api/api.php?cmd=currentBusState&vehnum=%D0%90%20086%20%D0%9A%D0%A5%20116%20RUS
Answer:
{
code: 0
lines: [
{
"id": 1086, // route id
"name": "1A", // route name
"number": "1A", // route number
"bidirectional": 1, // 1 - bidirectional, 0 - normal
"description": "1A", // description
"active": 1, // active
"price": "25.00", // fare
"interval": 10, // interval (in minutes)
"folder": null, // folder in route structure
"currentstop_id": 0, // id of the stop where the bus is currently located
"currentstop_order": 0, // serial number of the stop where the bus is currently located
"nextstop_id": 5217, // next stop id
"nextstop_order": 48 // next stop order number
}
]
}