Public transport stops list (XML)

This dataset provides a list of public transport stops. The response may include basic stop information, geographic location, served routes, and current departures. The dataset is suitable for displaying stops on a map, searching for a stop by identifier, or loading stops within a selected area.

Author
Platforma Invipo

Format
XML

License
Open Database License (ODbL)

Last modified
28. 4. 2026

Request

POST https://opendata.zilina.sk/api/datasets/v1/public-transport/stops/list?outputType=xml

Parameters

{
  "stopId": "12345",
  "location": {
    "type": "Polygon",
    "coordinates": [
      [
        [18.730000, 49.210000],
        [18.760000, 49.210000],
        [18.760000, 49.230000],
        [18.730000, 49.230000],
        [18.730000, 49.210000]
      ]
    ]
  },
  "extras": {
    "departures": true,
    "routes": true
  }
}
stopId (string, optional) – Stop identifier. If provided, the response is limited to the selected stop.
location (object, optional) – Geographic area used to filter stops.
location.type (string) – Geometry type. Supported value is "Polygon".
location.coordinates (array) – Area coordinates in [longitude, latitude] format.
extras (object, optional) – Settings for additional data in the response.
extras.departures (boolean, optional) – If false, current departures are not included. Default value is true.
extras.routes (boolean, optional) – If false, served routes are not included. Default value is true.
mandatoryFields (array of string, optional) – List of fields that must be present and non-empty for a stop to be included.

Answer

<root>
    <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>
        <departures></departures>
        <vehicleType>
            <item>Bus</item>
        </vehicleType>
        <routes>
            <item>
                <agency>Dopravný podnik mesta Žiliny s.r.o.</agency>
                <color>EC7014</color>
                <longName>Asanačný p. - Pietna,Krematórium a späť</longName>
                <routeId>660_31</routeId>
                <shortName>31</shortName>
                <vehicleType>Bus</vehicleType>
            </item>
        </routes>
    </item>
</root>
stopId (string) – Stop identifier.
name (string) – Stop name.
position (object) – Geographic location of the stop.
position.type (string) – Geometry type, for example "Point".
position.coordinates (array of numbers) – Stop coordinates in [longitude, latitude] format.
vehicleType (array) – Types of vehicles serving the stop.
routes (array) – List of routes serving the stop. Available unless disabled by extras.routes.
routes.routeId (string) – Route identifier.
routes.shortName (string) – Short route name or route number.
routes.longName (string) – Full route name.
routes.vehicleType (string) – Vehicle type.
routes.agency (string) – Transport operator.
routes.color (string) – Route color, if available.
departures (array) – Upcoming departures from the stop. Available unless disabled by extras.departures.
departures.direction (string) – Travel direction.
departures.vehicleType (string) – Vehicle type.
departures.routeShortName (string) – Short route name or route number.
departures.routeId (string) – Route identifier.
departures.tripId (string) – Trip identifier.
departures.scheduleTime (string) – Scheduled departure time.
departures.realTime (string) – Estimated current departure time based on available data.
departures.deviation (number) – Deviation from the timetable in minutes.
departures.info (string|null) – Additional departure information, if available.

Note

The response contains public transport stops matching the selected filters.
If no filter is provided, all available stops are returned.
Current departures are sorted by the nearest departure time and each stop contains at most 10 upcoming departures.
Departures older than approximately 2 minutes are not shown.
Datasets user guide