Location List
Endpoint for interacting with locations.
Query parameters
uuid:
Text filter on uuid
. Field filter method exact
is supported.
name:
Text filter on name
. Field filter methods exact
, startswith
are supported.
code:
Text filter on code
. Field filter methods exact
, startswith
are supported.
access_modifier
Filter on access_modifier
, options are 'Public', 'Private', 'Common', or 'Hidden'.
created:
Temporal filter on created
. Supports various lookup types
(exact
, lt
, lte
, gt
, gte
; created__exact by default).
Filter values should be specified in ISO 8601 YYYY-MM-DDThh:mm:ssZ format.
last_modified:
Temporal filter on last_modified
. Supports various lookup types
(exact
, lt
, lte
, gt
, gte
; last_modified__exact by default).
Filter values should be specified in ISO 8601 YYYY-MM-DDThh:mm:ssZ format.
timeseries__start:
Temporal filter on start
field of the related timeseries. Supports
various lookup types (exact
, lt
, lte
, gt
, gte
;
timeseries__start__exact by default). Filter values should be specified in
ISO 8601 YYYY-MM-DDThh:mm:ssZ format.
timeseries__end:
Temporal filter on end
field of the related timeseries. Supports
various lookup types (exact
, lt
, lte
, gt
, gte
;
timeseries__end__exact by default). Filter values should
be specified in ISO 8601 YYYY-MM-DDThh:mm:ssZ format.
organisation__uuid
Text filter on organisation__uuid
. Field filter method exact
is supported.
geom_isnull:
Boolean filter on geometry
.
geom_within:
Spatial filter on geometry
. Supports WKT, HEXEWKB, and GeoJSON.
object_id:
Number filter on the id
attribute of an object
.
Field filter method exact
is supported.
To be used in combination with object_type.
object__id:
Numerical filter on object__id
. Field filter method exact
is supported.
object__type:
Text filter on object__type
. Field filter methods exact
is supported.
ordering:
Offers basic ordering functionality on the name
and last_modified
attribute of
locations. Orderings may be reversed by prefixing the attribute with
'-'.
page: To prevent system overloads, list-view results are paginated. This parameter specifies which page to return.
page_size: The maximum number of results to return in list-view. The default is 10.
Examples
?name__startswith=gemaal
?name=gemaal
?code=ABC
?code__startswith=A
?timeseries__start__gte=2017-01-01T00:00:00Z
?timeseries__end__lt=2018-01-01T00:00:00Z
?organisation__uuid=b10eaf1f-2867-4ffb-8f4a-5eb9bd37dbf1
?access_modifier=Private
?access_modifier=100
?created__gte=2017-01-01T00:00:00Z
?last_modified__lt=2018-01-01T00:00:00Z
?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]]]}
?object__id=1
?object__type=building
?ordering=name
GET /api/v4/locations/?format=api&page=20
https://demo.lizard.net/api/v4/locations/?format=api&page=21", "previous": "https://demo.lizard.net/api/v4/locations/?format=api&page=19", "results": [ { "url": "https://demo.lizard.net/api/v4/locations/df163963-b5de-46e1-bd8a-4c2c591f109c/?format=api", "uuid": "df163963-b5de-46e1-bd8a-4c2c591f109c", "name": "HEERDE", "code": "328", "geometry": { "type": "Point", "coordinates": [ 6.033394286130967, 52.37810133721924, 0.0 ] }, "organisation": { "url": "https://demo.lizard.net/api/v4/organisations/18d98431-8077-451a-a7ae-041aac7ad148/?format=api", "uuid": "18d98431-8077-451a-a7ae-041aac7ad148", "name": "KNMI" }, "object": { "id": 177, "type": "measuringstation" }, "access_modifier": "Public", "extra_metadata": {}, "created": "2014-11-05T13:46:59.895579Z", "last_modified": null, "last_modified_by": "" }, { "url": "https://demo.lizard.net/api/v4/locations/0586463d-2beb-4a03-b3db-44764eee41d9/?format=api", "uuid": "0586463d-2beb-4a03-b3db-44764eee41d9", "name": "WAPENVELD", "code": "329", "geometry": { "type": "Point", "coordinates": [ 6.078290620033247, 52.431774417614236, 0.0 ] }, "organisation": { "url": "https://demo.lizard.net/api/v4/organisations/18d98431-8077-451a-a7ae-041aac7ad148/?format=api", "uuid": "18d98431-8077-451a-a7ae-041aac7ad148", "name": "KNMI" }, "object": { "id": 178, "type": "measuringstation" }, "access_modifier": "Public", "extra_metadata": {}, "created": "2014-11-05T13:46:59.960447Z", "last_modified": null, "last_modified_by": "" }, { "url": "https://demo.lizard.net/api/v4/locations/02288677-70fa-40e9-b011-37d7b0234447/?format=api", "uuid": "02288677-70fa-40e9-b011-37d7b0234447", "name": "ZWOLLE", "code": "330", "geometry": { "type": "Point", "coordinates": [ 6.13878124937985, 52.53027070393316, 0.0 ] }, "organisation": { "url": "https://demo.lizard.net/api/v4/organisations/18d98431-8077-451a-a7ae-041aac7ad148/?format=api", "uuid": "18d98431-8077-451a-a7ae-041aac7ad148", "name": "KNMI" }, "object": { "id": 179, "type": "measuringstation" }, "access_modifier": "Public", "extra_metadata": {}, "created": "2014-11-05T13:47:00.007574Z", "last_modified": null, "last_modified_by": "" }, { "url": "https://demo.lizard.net/api/v4/locations/31da3df5-21cf-4ca0-887e-31eaa2dc4849/?format=api", "uuid": "31da3df5-21cf-4ca0-887e-31eaa2dc4849", "name": "DENEKAMP", "code": "331", "geometry": { "type": "Point", "coordinates": [ 7.032109989124748, 52.37742276233554, 0.0 ] }, "organisation": { "url": "https://demo.lizard.net/api/v4/organisations/18d98431-8077-451a-a7ae-041aac7ad148/?format=api", "uuid": "18d98431-8077-451a-a7ae-041aac7ad148", "name": "KNMI" }, "object": { "id": 180, "type": "measuringstation" }, "access_modifier": "Public", "extra_metadata": {}, "created": "2014-11-05T13:47:00.053015Z", "last_modified": null, "last_modified_by": "" }, { "url": "https://demo.lizard.net/api/v4/locations/16df8d24-fb2b-4fe3-bf07-7de769485cd4/?format=api", "uuid": "16df8d24-fb2b-4fe3-bf07-7de769485cd4", "name": "HOOGEVEEN", "code": "332", "geometry": { "type": "Point", "coordinates": [ 6.467566837888276, 52.716475367228, 0.0 ] }, "organisation": { "url": "https://demo.lizard.net/api/v4/organisations/18d98431-8077-451a-a7ae-041aac7ad148/?format=api", "uuid": "18d98431-8077-451a-a7ae-041aac7ad148", "name": "KNMI" }, "object": { "id": 181, "type": "measuringstation" }, "access_modifier": "Public", "extra_metadata": {}, "created": "2014-11-05T13:47:00.099293Z", "last_modified": null, "last_modified_by": "" }, { "url": "https://demo.lizard.net/api/v4/locations/642ab215-eee7-4122-ae52-56ee4c52bd0c/?format=api", "uuid": "642ab215-eee7-4122-ae52-56ee4c52bd0c", "name": "EMMEN", "code": "333", "geometry": { "type": "Point", "coordinates": [ 6.884287548075139, 52.78386729988505, 0.0 ] }, "organisation": { "url": "https://demo.lizard.net/api/v4/organisations/18d98431-8077-451a-a7ae-041aac7ad148/?format=api", "uuid": "18d98431-8077-451a-a7ae-041aac7ad148", "name": "KNMI" }, "object": { "id": 182, "type": "measuringstation" }, "access_modifier": "Public", "extra_metadata": {}, "created": "2014-11-05T13:47:00.161149Z", "last_modified": null, "last_modified_by": "" }, { "url": "https://demo.lizard.net/api/v4/locations/872e783b-b029-4927-80b5-4167bf6feadd/?format=api", "uuid": "872e783b-b029-4927-80b5-4167bf6feadd", "name": "IJSSELMUIDEN", "code": "335", "geometry": { "type": "Point", "coordinates": [ 5.94755570512629, 52.55829028472029, 0.0 ] }, "organisation": { "url": "https://demo.lizard.net/api/v4/organisations/18d98431-8077-451a-a7ae-041aac7ad148/?format=api", "uuid": "18d98431-8077-451a-a7ae-041aac7ad148", "name": "KNMI" }, "object": { "id": 183, "type": "measuringstation" }, "access_modifier": "Public", "extra_metadata": {}, "created": "2014-11-05T13:47:00.207941Z", "last_modified": null, "last_modified_by": "" }, { "url": "https://demo.lizard.net/api/v4/locations/a6993ab0-1f63-4d7a-aa76-154cfb862e2d/?format=api", "uuid": "a6993ab0-1f63-4d7a-aa76-154cfb862e2d", "name": "OLDEBROEK", "code": "336", "geometry": { "type": "Point", "coordinates": [ 5.916017774653715, 52.38767175038101, 0.0 ] }, "organisation": { "url": "https://demo.lizard.net/api/v4/organisations/18d98431-8077-451a-a7ae-041aac7ad148/?format=api", "uuid": "18d98431-8077-451a-a7ae-041aac7ad148", "name": "KNMI" }, "object": { "id": 184, "type": "measuringstation" }, "access_modifier": "Public", "extra_metadata": {}, "created": "2014-11-05T13:47:00.245144Z", "last_modified": null, "last_modified_by": "" }, { "url": "https://demo.lizard.net/api/v4/locations/f838099e-7517-4588-b45f-cc17241f611b/?format=api", "uuid": "f838099e-7517-4588-b45f-cc17241f611b", "name": "SCHOONLOO", "code": "337", "geometry": { "type": "Point", "coordinates": [ 6.709994534955452, 52.902769114469635, 0.0 ] }, "organisation": { "url": "https://demo.lizard.net/api/v4/organisations/18d98431-8077-451a-a7ae-041aac7ad148/?format=api", "uuid": "18d98431-8077-451a-a7ae-041aac7ad148", "name": "KNMI" }, "object": { "id": 185, "type": "measuringstation" }, "access_modifier": "Public", "extra_metadata": {}, "created": "2014-11-05T13:47:00.275694Z", "last_modified": null, "last_modified_by": "" }, { "url": "https://demo.lizard.net/api/v4/locations/7969e4ff-e365-4d97-91df-0e01155404aa/?format=api", "uuid": "7969e4ff-e365-4d97-91df-0e01155404aa", "name": "GIETHOORN", "code": "338", "geometry": { "type": "Point", "coordinates": [ 6.068016291930176, 52.719431980872145, 0.0 ] }, "organisation": { "url": "https://demo.lizard.net/api/v4/organisations/18d98431-8077-451a-a7ae-041aac7ad148/?format=api", "uuid": "18d98431-8077-451a-a7ae-041aac7ad148", "name": "KNMI" }, "object": { "id": 186, "type": "measuringstation" }, "access_modifier": "Public", "extra_metadata": {}, "created": "2014-11-05T13:47:00.306586Z", "last_modified": null, "last_modified_by": "" } ] }{ "count": 59876, "next": "