Request
POST https://opendata.zilina.sk/api/datasets/v1/public-transport/stops/list?outputType=csv
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
"stopId","name","locationType","position","zone","departures","vehicleType","routes"
"1","Asanačný podnik","Stop","{""coordinates"":[18.8255,49.19102],""type"":""Point""}","100","[]","[""Bus""]","[{""agency"":""Dopravný podnik mesta Žiliny s.r.o."",""color"":""EC7014"",""longName"":""Asanačný p. - Pietna,Krematórium a späť"",""routeId"":""660_31"",""shortName"":""31"",""vehicleType"":""Bus""}]"
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.