Bus Lines API
Example:
https://<address>/api/api.php?cmd=stopList
Get a list of stops on a route
Parameter:
cmd: stopList
line_num: Line number :
Request:
https://<address>/api/api.php?cmd=stopList&line_num=1B
Answer:
{
code: 0
line: {
"id": 1083, // route id
"name": "1B", // route name
"number": "1B", // route number
"bidirectional": 1, // 1 - bidirectional, 0 - normal
"description": "1B", // description
"active": 1, // active
"price": "25.00", // fare
"interval": 25, // interval (in minutes)
"folder": null, // folder in route structure
"stops": [
{
"id": 5085, // stop id
"name": "Employment Center", // stop name
"lat": "54.9036", // latitude
"lon": "52.3315", // longitude
"radius": 60, // radius in meters
"stop_type": 0, // stop type 0 - regular , 1 - technical , 2 - final
"descr": null, // description
"stop_order": 1, // route order
"price": "0.00", // stop fare (when charging per stop)
"ts": 0, // arrival time at the stop in seconds from the start of the route
"te": 0, // departure time from the stop in seconds from the start of the route
"dir": 0, // direction (0 - forward 1 - reverse)
"silent": 0 // 1 - don't generate messages for this stop
},
{
"id": 5086,
"name": "Bus station",
"lat": "54.9039",
"lon": "52.3236",
radius: 60
"stop_type": 2,
"descr": null
"stop_order": 2,
"price": "0.00",
"ts": 0
"te": 0,
dir: 0
silent: 0
}
]
}
}