Limit results with ‘find’ for ch.swisstopo.swissboundaries3d-gemeinde-flaeche.fill to the current year.

44 views
Skip to first unread message

Martin Suter

unread,
Aug 8, 2025, 2:09:13 AMAug 8
to GeoAdminCh API
With ‘identify’, the results can be limited to the current year using the ‘timeInstant’ parameter, but this does not seem to work with ‘find’.

SearchServer/featuresearch seems to have the same problem. SearchServer also does not return all attributes as via ‘find’.

I must be overlooking something. What is the correct parameter to limit the results via ‘find’ to the current year?

Thanks, Martin

Pascal Barth

unread,
Sep 10, 2025, 6:07:49 AMSep 10
to geoadm...@googlegroups.com
Hi Martin,

Sadly the timeInstant has only been implemented on the identify endpoint.
On the find endpoint there's no standard way of filtering the result based on what each features hold, outside of the search query (which can only filter one field at a time).

So in your case, if you are already filtering by Gemeinde name, you will have to go through the results and filter with the "jahr" value to get the year you are interested in.

Cheers,
Pascal

--
You received this message because you are subscribed to the Google Groups "GeoAdminCh API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to geoadmin-api...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/geoadmin-api/2c6cdd7d-d225-4c2b-88b7-8e1c645d00d0n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages