Request
POST https://opendata.zilina.sk/api/datasets/v1/parking/items
Parameters
{
"expand": true,
"limit": 10,
"page": 1,
"sort": "-name"
}
expand (boolean, optional) – If true, the response also contains pagination metadata.
limit (number, optional) – Maximum number of items returned in one response.
page (number, optional) – Requested page number.
sort (string, optional) – Sorting of the result. For example, "-name" sorts items by name in descending order.
Answer
{
"meta": {
"documents": {
"total": 1
},
"page": {
"actual": 1,
"size": 10,
"total": 1
}
},
"data": [
{
"id": "67b5e8c335c59400017efe4b",
"name": "Antona Bernoláka",
"position": {
"type": "Point",
"coordinates": [
18.74079667765875,
49.21805180522654
]
}
}
]
}
meta (object) – Response metadata. Available when expand is set to true.
meta.documents.total (number) – Total number of available items.
meta.page.actual (number) – Current page number.
meta.page.size (number) – Number of items per page.
meta.page.total (number) – Total number of pages.
data (array) – List of parking items.
id (string) – Unique identifier of the parking item.
name (string) – Name of the parking item.
position (object) – Geographic position of the item.
position.type (string) – Geometry type, for example "Point".
position.coordinates (array of numbers) – Coordinates in format [longitude, latitude].
Note
If the expand parameter is not set or is false, the response contains the array of items directly, without the meta object.