get_schedule_time

To get the start time of rides for a specified interval, use the route/get_schedule_time command:

Copied!
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.

Copied!
[
  {
    "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

If you find a mistake in the text, please select it and press Ctrl+Enter.

Report a mistake

Your message was sent. Thank you!

An error occurred while submitting the form

Download PDF file
Download Word document

See also