Determining Free Seats for a Route
To determine and temporarily block free seats for a route, perform a GET request with the following parameters.
Required Parameters
| Parameter | Description |
|---|---|
aktion | getSitzplatz, defines the action. |
klasse_id | Booking class ID. |
schiff_id | Resource ID. |
start_linie_hafen_id | Start station ID from the line-station table. |
stop_linie_hafen_id | Destination station ID from the line-station table. |
fahrt | Trip number. |
linie_id | Line ID. |
sitzplan_kategorie_id | Seating plan category ID from schiff_sitzplan_kategorie_id in the schedule result. |
token | XML token provided by the operator. |
datum_fahrt | Trip date as Unix timestamp. Use the date from the request array; for multi-day lines, use the start date of the first station. |
Return Values
| Case | Response |
|---|---|
| No result | Empty array. |
| Successful request | Multidimensional array. The belegt node contains occupied seats with the seat number as key. The plaetze node contains available seats for the request. |
Example Call
xml.php?aktion=getSitzplatz&token=xyz&linie_id=3&klasse_id=3&fahrt=2&datum_fahrt=1580857200&start_linie_hafen_id=9&stop_linie_hafen_id=15&sitzplan_kategorie_id=1