Fehler

58 views
Skip to first unread message

Laura Maria Gabriela Florentin Montalbetti

unread,
Mar 6, 2025, 3:31:53 AMMar 6
to GeoAdminCh API
Hallo, Ich habe eine Frage, ich verwende diesen Code const url = `https://api3.geo.admin.ch/rest/services/api/MapServer/find?layer=ch.bfs.gebaeude_wohnungs_register&searchText=${gemeindeName}&searchField=ggdename&returnGeometry=true&maxAllowableOffset=0&maxResults=1000`; um nach dem Gemiende-Namen zu filtern, aber mein Problem ist, dass, egal nach welchem Gemiende ich frage, ich immer nur 201 Ergebnisse erhalte.


Gruss

Laura

Pascal Barth

unread,
Mar 6, 2025, 5:33:20 AMMar 6
to geoadm...@googlegroups.com
Hi Laura,

It's not possible to raise the limits/result count on this endpoint, it is fixed to 201 results max.
What is the end goal of your search? Maybe we could find a better solution by using another endpoint.

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/ff8416f1-00f4-40ef-af92-7e685b21b619n%40googlegroups.com.

Laura Florentin Montalbetti

unread,
Mar 6, 2025, 11:35:37 AMMar 6
to GeoAdminCh API
Hi Pascal, 
thank you for your answer, it is for a search by gemeinde, that later I can filter again by type of heating to know the quantity, all this shown in a map, it is for an internal project of the firm.

Gruss
Laura

Pascal Barth

unread,
Mar 7, 2025, 6:06:13 AMMar 7
to geoadm...@googlegroups.com
Hi Laura,

So is the idea to create some sort of statistics on heating by Gemeinde?
If so, I think you are better of downloading our Gemeindegrenzen from our open data website (here)
and then also download heating type data here
and process that in QGIS or other tools to help you sort out features you want to count.

Our API doesn't really make it easy to filter feature from the ch.bfs.gebaeude_wohnungs_register_waermequelle_heizung layer with a specific geometry. It will work based on map extent, but then you'll have to filter results again and check that they are withing a specific Gemeindegrenze. (tons of requests, maybe easier to achieve that directly in QGIS with raw data)

Is that what you wanted to achieve?

Cheers,
Pascal


Reply all
Reply to author
Forward
0 new messages