get_schedule_time
To get the start time of rides for a specified interval, use the route/get_schedule_time command:
svc=route/get_schedule_time
params={
"itemId": <long>,
"scheduleId": <long>,
"timeFrom": <uint>,
"timeTo": <uint>
}
Parameters
The request must contain the following parameters:
Parameter | Description |
---|---|
itemID | Route ID. |
scheduleId | Schedule ID. |
timeFrom | Interval beginning. |
timeTo | Interval end. |
Response
If the request is completed successfully, the response contains the start time of the rides.
[
{
"time": <uint> // Time of ride beginning (Unix timestamp).
}
]
The maximum number of entries that can be returned is 100. The number of rides is limited to one ride per day.
If the request fails, an error code is returned.
Error codes
Error code | Description |
---|---|
4 | Invalid input parameters. |
7 | Internal error |