Missing Canton Identifier in SearchServer Response Attribute Detail

117 views
Skip to first unread message

Uch

unread,
Nov 12, 2025, 4:58:14 AM (11 days ago) Nov 12
to GeoAdminCh API
Hi

When looking at a specific request, I'm wondering why there is no canton identifier at the end of results[5].attrs.detail.

This is the request I'm talking about: https://api3.geo.admin.ch/rest/services/api/SearchServer?type=locations&origins=address&searchText=Oberfeld%2023

Is this something that we should expect and deal with it properly, a rare exception or a bug?

Best Uch

Uch

unread,
Nov 13, 2025, 7:27:31 AM (10 days ago) Nov 13
to GeoAdminCh API
I know now, that this is likely because of the API update and the search uses by default the layer ch.swisstopo.amtliches-gebaeudeadressverzeichnis instead of GWR. However, I'm wondering why this happens there too.

webk...@gmail.com

unread,
Nov 13, 2025, 8:23:27 AM (10 days ago) Nov 13
to GeoAdminCh API
Hej Uch

Maybe it was a temporary glitch. When looking at the query https://api3.geo.admin.ch/rest/services/api/SearchServer?type=locations&origins=address&searchText=Oberfeld%2023 the canton identifier is at the end of the detail

hope that helps.Best regards,Helpdesk federal geoportal

Uch

unread,
Nov 14, 2025, 3:02:21 AM (9 days ago) Nov 14
to GeoAdminCh API
No, it seems to persist:

Screenshot 2025-11-13 at 15-37-09 .png

Uch

unread,
Nov 14, 2025, 3:02:25 AM (9 days ago) Nov 14
to GeoAdminCh API
Figured it out. This is the case for addresses in Liechtenstein. So this is likely intended although breaking with the previous pattern of the detail attribute.

On Thursday, 13 November 2025 at 14:23:27 UTC+1 webk...@gmail.com wrote:
Reply all
Reply to author
Forward
0 new messages