Inconsistent result for search of building by EGID.

23 views
Skip to first unread message

Jean-Yves Reutter GREM

unread,
Apr 25, 2022, 8:34:25 AMApr 25
to GeoAdminCh API
Hi there,

I am trying to find the town number (Gemeinde-Nr) of a building by using its EGID.
So, we make the following API-call.
This API-call does not return any result.

But if I use the web portal of the Federal Register of Buildings and Dwellings and look for the EGID, it does return a building.

So, the building with EGID 302064177 does exist. It is actually an underground car park.

Why does the API-call not find it?

Kind regards,
Jean-Yves

GeoAdminCh API

unread,
Apr 26, 2022, 5:02:01 AMApr 26
to GeoAdminCh API

Das GWR liefert keine Gebäude der Kategorie 1080 (Sonderbau) in den Datensatz des Gebäude- und Wohnungsregisters.

Daher sind diese nur über housing-stat oder dem Datensatz «Amtliches Gebäudeadressverzeichnis verfügbar.

Bsp:  https://api3.geo.admin.ch/rest/services/api/MapServer/find?layer=ch.swisstopo.amtliches-gebaeudeadressverzeichnis&searchText=302064177&searchField=bdg_egid&returnGeometry=false&contains=false

Jean-Yves Reutter GREM

unread,
May 5, 2022, 7:21:04 AMMay 5
to GeoAdminCh API
Thank you very much for your answer!
This solves our problem.
Reply all
Reply to author
Forward
0 new messages