Request
POST https://opendata.zilina.sk/api/datasets/v2/street-lights/items
Parameters
{
"expand": true,
"limit": 10,
"page": 1,
"sort": "-name"
}
expand (boolean, optional) – If true, the response contains metadata with total document count and pagination information.
limit (number, optional) – Number of records per page.
page (number, optional) – Page number starting from 1.
sort (string, optional) – Sorting field. Prefix with "-" for descending order. Default value is "-_id".
Answer
{
"meta": {
"documents": {
"total": 8901
},
"page": {
"actual": 1,
"size": 10,
"total": 891
}
},
"data": [
{
"id": "68e6393cb5c69600016983a0",
"name": "Lightnet.37-3.4015",
"position": {
"type": "Point",
"coordinates": [
18.73372700996697,
49.1953010391444
]
}
}
]
}
id (string) – Unique identifier of the street light.
name (string) – Name or label of the street light.
position (object, optional) – Geographic position of the street light.
position.type (string) – Geometry type, typically "Point".
position.coordinates (array of numbers) – Coordinates in format [longitude, latitude].
If expand is true, the response contains:
meta.documents.total (number) – Total number of available records.
meta.page.actual (number) – Current page.
meta.page.size (number) – Page size.
meta.page.total (number) – Total number of pages.