Endpoint for interacting with locations.

Query parameters

created: Temporal filter on created. Supports created__icontains, created__iexact, created__gte, created__gt, created__lt, created__lte, created__startswith. (created__exact by default). Filter values should be specified in ISO 8601 YYYY-MM-DDThh:mm:ssZ format.

dist: Spatial filter on geometry. Also requires a point in (lon, lat) format. Distances, in meters, are internally converted to degrees. This conversion is approximate (and worse for high latitudes).

geom_isnull: Boolean filter on geometry.

geom_within: Spatial filter on geometry. Supports WKT, HEXEWKB, and GeoJSON.

in_bbox: Spatial filter on geometry. The bounding box format is: min Lat, min Lon, max Lat, max Lon. Includes locations that overlap the bounding box.

locationName: Text filter on name. Supports locationName__icontains, locationName__startswith lookup types(name__exact by default).

locationCode: Text filter on code. Supports locationCode__icontains, locationCode__startswith lookup types (locationCode__exact by default).

object_id: Number filter on the id attribute of an object. Supports object_id__icontains, object_id__startswith lookup types (object_id__exact by default). To be used in combination with object_type.

object_type: Related filter on object. See below for an example on how to filter on assets like sluices, pump stations, etc.

ordering: Offers basic ordering functionality on the name attribute of locations. Orderings may be reversed by prefixing the attribute with '-'.

organisation: Related filter on organisation. See the organisations endpoint.

organisation_code (or just code for short): Text filter on code. Supports organisation_code__icontains, organisation_code__exact, organisation_code__startswith lookup types (organisation_code__exact by default).

page: To prevent system overloads, list-view results are paginated. This parameter specifies which page to return.

pageSize: The maximum number of results to return in list-view. The default is 10.

point: See dist.

locationId: Text filter on uuid. Supports a comma-separated list of (fragments of) UUIDs. Supports locationId__icontains and locationId__iexact as default.

Examples

?created__gte=2017-01-01T00:00:00Z

?dist=1000&point=4.87,52.73

?geom_isnull=false

?geom_within=POLYGON((4.87 52.73, 4.87 52.79, 4.98 52.79, 4.98 52.73,
4.87 52.73))

?geom_within={"type": "Polygon", "coordinates": [[[4.87, 52.73],
[4.87, 52.79], [4.98, 52.79], [4.98, 52.73], [4.87, 52.73]]]}

?in_bbox=4.86,52.73,4.98,52.79

?locationName__icontains=gemaal

?object_type__model=sluice

?object_type__model=pumpstation&object_id=1

?ordering=name

?organisation__name=Noorderzijlvest

?organisation_code__startswith=WNS1400

?locationId__icontains=67035326-c5e3-41d2-ba7a-0bd4b8626b29
GET /dd/api/v2/locations/?format=api&page=5972
HTTP 200 OK
Allow: GET, POST, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "paging": {
        "totalObjectCount": 59717,
        "prev": "https://demo.lizard.net/dd/api/v2/locations/?format=api&page=5971",
        "next": null,
        "maxPageSize": 1000,
        "minPageSize": 2
    },
    "results": [
        {
            "id": "5c1c5752-5038-4273-9b9c-94db2707bb40",
            "type": "Feature",
            "geometry": {
                "type": "Point",
                "coordinates": [
                    5.941081720291336,
                    52.71654143771176,
                    0.0
                ]
            },
            "properties": {
                "url": "https://demo.lizard.net/dd/api/v2/locations/5c1c5752-5038-4273-9b9c-94db2707bb40/?format=api",
                "locationCode": "16DZ-39165",
                "locationName": "STEENWIJKER D-TOCHT, nabij Ettenlandseweg",
                "node": {
                    "url": "https://demo.lizard.net/dd/api/v2/nodes/6be7b0dd-b65b-4e33-adcc-80ef1e28b4b5/?format=api",
                    "uuid": "6be7b0dd-b65b-4e33-adcc-80ef1e28b4b5",
                    "name": "Lizard",
                    "description": "",
                    "baseUrl": ""
                }
            }
        },
        {
            "id": "f11488ea-138c-4702-9a98-162647fc90ef",
            "type": "Feature",
            "geometry": {
                "type": "Point",
                "coordinates": [
                    5.920188446740642,
                    52.71317686217889,
                    0.0
                ]
            },
            "properties": {
                "url": "https://demo.lizard.net/dd/api/v2/locations/f11488ea-138c-4702-9a98-162647fc90ef/?format=api",
                "locationCode": "16DZ-39166",
                "locationName": "STEENWIJKERTOCHT, bovenstuws thv kavels S62/S75",
                "node": {
                    "url": "https://demo.lizard.net/dd/api/v2/nodes/6be7b0dd-b65b-4e33-adcc-80ef1e28b4b5/?format=api",
                    "uuid": "6be7b0dd-b65b-4e33-adcc-80ef1e28b4b5",
                    "name": "Lizard",
                    "description": "",
                    "baseUrl": ""
                }
            }
        },
        {
            "id": "6218fb5b-d052-4a75-9ccf-83ac8f1d8efe",
            "type": "Feature",
            "geometry": {
                "type": "Point",
                "coordinates": [
                    5.590064047367028,
                    52.522700839123395,
                    0.0
                ]
            },
            "properties": {
                "url": "https://demo.lizard.net/dd/api/v2/locations/6218fb5b-d052-4a75-9ccf-83ac8f1d8efe/?format=api",
                "locationCode": "20GZ-39365",
                "locationName": "VUURSTEENTOCHT, Doorstroombak meettrailer",
                "node": {
                    "url": "https://demo.lizard.net/dd/api/v2/nodes/6be7b0dd-b65b-4e33-adcc-80ef1e28b4b5/?format=api",
                    "uuid": "6be7b0dd-b65b-4e33-adcc-80ef1e28b4b5",
                    "name": "Lizard",
                    "description": "",
                    "baseUrl": ""
                }
            }
        },
        {
            "id": "26360006-0e75-4907-ba66-319389c8cced",
            "type": "Feature",
            "geometry": {
                "type": "Point",
                "coordinates": [
                    5.633990924965139,
                    52.64458263021883,
                    0.0
                ]
            },
            "properties": {
                "url": "https://demo.lizard.net/dd/api/v2/locations/26360006-0e75-4907-ba66-319389c8cced/?format=api",
                "locationCode": "20FZ-39453",
                "locationName": "WATERPARTIJ OOST PORT OF URK, kavel E24",
                "node": {
                    "url": "https://demo.lizard.net/dd/api/v2/nodes/6be7b0dd-b65b-4e33-adcc-80ef1e28b4b5/?format=api",
                    "uuid": "6be7b0dd-b65b-4e33-adcc-80ef1e28b4b5",
                    "name": "Lizard",
                    "description": "",
                    "baseUrl": ""
                }
            }
        },
        {
            "id": "3cd43359-7733-4ac2-af1f-826323dcc9e6",
            "type": "Feature",
            "geometry": {
                "type": "Point",
                "coordinates": [
                    5.630481585441037,
                    52.643196874913805,
                    0.0
                ]
            },
            "properties": {
                "url": "https://demo.lizard.net/dd/api/v2/locations/3cd43359-7733-4ac2-af1f-826323dcc9e6/?format=api",
                "locationCode": "20FZ-39476",
                "locationName": "WATERPARTIJ WEST PORT OF URK, nabij dijk, kavel E24",
                "node": {
                    "url": "https://demo.lizard.net/dd/api/v2/nodes/6be7b0dd-b65b-4e33-adcc-80ef1e28b4b5/?format=api",
                    "uuid": "6be7b0dd-b65b-4e33-adcc-80ef1e28b4b5",
                    "name": "Lizard",
                    "description": "",
                    "baseUrl": ""
                }
            }
        },
        {
            "id": "46561db8-ea90-4edd-9193-7963cbf8a37d",
            "type": "Feature",
            "geometry": {
                "type": "Point",
                "coordinates": [
                    5.71717313430549,
                    52.5361388872911,
                    0.0
                ]
            },
            "properties": {
                "url": "https://demo.lizard.net/dd/api/v2/locations/46561db8-ea90-4edd-9193-7963cbf8a37d/?format=api",
                "locationCode": "600-W-2332",
                "locationName": "Slibopslagtank extern slib, Slibaanvoer Plukon waterlijn",
                "node": {
                    "url": "https://demo.lizard.net/dd/api/v2/nodes/6be7b0dd-b65b-4e33-adcc-80ef1e28b4b5/?format=api",
                    "uuid": "6be7b0dd-b65b-4e33-adcc-80ef1e28b4b5",
                    "name": "Lizard",
                    "description": "",
                    "baseUrl": ""
                }
            }
        },
        {
            "id": "8077107f-fd28-420e-be74-2312f316ba35",
            "type": "Feature",
            "geometry": {
                "type": "Point",
                "coordinates": [
                    5.716804070035898,
                    52.53605902763532,
                    0.0
                ]
            },
            "properties": {
                "url": "https://demo.lizard.net/dd/api/v2/locations/8077107f-fd28-420e-be74-2312f316ba35/?format=api",
                "locationCode": "600-FIT-2330",
                "locationName": "Inzamelen intern afvalwater, Handmeting dosering Plukon",
                "node": {
                    "url": "https://demo.lizard.net/dd/api/v2/nodes/6be7b0dd-b65b-4e33-adcc-80ef1e28b4b5/?format=api",
                    "uuid": "6be7b0dd-b65b-4e33-adcc-80ef1e28b4b5",
                    "name": "Lizard",
                    "description": "",
                    "baseUrl": ""
                }
            }
        }
    ]
}