Public transport schedule (XML)

This dataset provides the daily public transport schedule for the selected date. The response contains a list of stops and routes, including trips and scheduled departures at individual stops. The dataset is suitable for displaying timetables, route details, stop lists, and daily public transport connections.

Author
Platforma Invipo

Format
XML

License
Open Database License (ODbL)

Last modified
28. 4. 2026

Request

POST https://opendata.zilina.sk/api/datasets/v2/public-transport/schedule?outputType=xml

Parameters

{
  "date": "2022-05-16T08:13:07.973Z"
}
date (string, required) – Date for which the daily public transport schedule should be returned. The value must be provided in ISO 8601 date-time format.

Answer

<root>
    <stops>
        <item>
            <stopId>1</stopId>
            <name>Asanačný podnik</name>
            <locationType>Stop</locationType>
            <position>
                <coordinates>
                    <item>18.8255</item>
                    <item>49.19102</item>
                </coordinates>
                <type>Point</type>
            </position>
            <zone>100</zone>
        </item>
    </stops>
    <routes>
        <item>
            <agency>Dopravný podnik mesta Žiliny s.r.o.</agency>
            <color>C7E9B4</color>
            <longName>Dopravný podnik - Vlčince a späť</longName>
            <routeId>659_1</routeId>
            <shortName>1</shortName>
            <vehicleType>CableCar</vehicleType>
            <trips></trips>
        </item>
    </routes>
</root>
stops (array) – List of public transport stops.
stops.stopId (string) – Stop identifier.
stops.name (string) – Stop name.
stops.locationType (string) – Type of location, for example stop.
stops.position (object) – Geographic position of the stop.
stops.position.type (string) – Geometry type, for example "Point".
stops.position.coordinates (array of numbers) – Stop coordinates in format [longitude, latitude].
stops.zone (string) – Tariff or transport zone.

routes (array) – List of public transport routes.
routes.agency (string) – Transport agency operating the route.
routes.color (string) – Route color in hexadecimal format.
routes.longName (string) – Full route name or route description.
routes.routeId (string) – Route identifier.
routes.shortName (string) – Short route name, usually the line number.
routes.vehicleType (string) – Type of vehicle used on the route.
routes.trips (array) – List of trips for the selected date.
routes.trips.tripId (string) – Trip identifier.
routes.trips.departures (array) – Scheduled departures within the trip.
routes.trips.departures.stopId (string) – Stop identifier where the departure takes place.
routes.trips.departures.scheduleTime (string) – Scheduled departure time in ISO 8601 date-time format.
routes.trips.notes (array) – Additional notes related to the trip.

Note

The schedule is returned for the whole selected day according to the date parameter.
Departures are ordered by scheduled departure time.
Trips are grouped under their corresponding public transport routes.
Datasets user guide