countrycitystationdiscountroutes_dayroutesorder_neworder_confirmorder_cancelorder_ticket_returnorder_ticket_cancelorder_restoreorder_infoorder_stat | Returns accessible flights between the selected cities on a set date. For the work with this method the API access key is required. For example:
Acceptable parameters:Key | Type | Description |
---|
key | char | API access key | from | int | Id of city of departure | to | int | Id of city of arrival | crc | char | Units of money ( eur, uah, auto – default route value ) | date | DD-MM-YYYY | Date (ISO 8601) |
Return values:Key | Type | Description |
---|
id | char | Unique identifier ( id ) of flight | bus | char | Bus | option | array | Options available on the bus | places | int | Number of seats | free | int | Number of free seats | price | double | Price of tickets | currency | char | Units of money ( EUR, UAH, PLN ) | transfer | boolean | Transfer ( 1 - yes, 0 - no ) | departure | array | DepartureKey | Type | Description |
---|
city_id | int | Id of city | city | char | Name of city | name | char | Bus terminal | station_id | char | Bus terminal Id | time | DD.MM.YYYY hh:mm | Time of departure (ISO 8601) |
| stopping | array | Bus terminalKey | Type | Description |
---|
city_id | int | Id of city | city | char | Name of city | name | char | Bus terminal | station_id | char | Bus terminal Id | time_in | DD.MM.YYYY hh:mm | Time of arrival (ISO 8601) | time_out | DD.MM.YYYY hh:mm | Time of departure (ISO 8601) | transfer | int | Точка пересадки ( 1 - Да, 0 - Нет ) |
| arrival | array | ArrivalKey | Type | Description |
---|
city_id | int | Id of city | city | char | Name of city | name | char | Bus terminal | station_id | char | Bus terminal Id | time | DD.MM.YYYY hh:mm | Time of arrival (ISO 8601) |
| error | int | Code of error ( 0 – no error, 1 – incorrect API access key, 101 – between the selected cities on a set date the bus trip is not found, 102 – incorrect Id of city, 103 – the date is not specified, 104 – the date does not correspond with the format or is less than the current date + 1 day ) |
|