Skip to content

Conversation

@ltclm
Copy link
Contributor

@ltclm ltclm commented Jan 20, 2026

Document the new links field in address search responses that provides related resources for building and dwelling data. The links section includes references to ch.swisstopo.amtliches-gebaeudeadressverzeichnis and ch.bfs.gebaeude_wohnungs_register layers.

Add example showing address search with links and recommendation to use provided links instead of manually constructing feature URLs.

Ref: geoadmin/service-search-wsgi#91

Test link

Document the new links field in address search responses that provides
related resources for building and dwelling data. The links section
includes references to ch.swisstopo.amtliches-gebaeudeadressverzeichnis
and ch.bfs.gebaeude_wohnungs_register layers.

Add example showing address search with links and recommendation to use
provided links instead of manually constructing feature URLs.

Ref: geoadmin/service-search-wsgi#91
@ltclm ltclm force-pushed the feat_PB-2168_swisssearch_links_section branch from 14167cd to 26938ab Compare January 20, 2026 08:08
Copy link
Contributor

@rebert rebert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great, thx

"href": "/rest/services/ech/MapServer/ch.bfs.gebaeude_wohnungs_register/<featureid>"
}
]
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When I run the query https://api3.geo.admin.ch/rest/services/ech/SearchServer?searchText=Landstrasse%208595%20Altnau&type=locations the answer does not contain a "links" section. Are you sure this is the right query?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for now you have to use sys-api3.dev.bgdi.ch. This doc be deployed together with the next release deploy.
https://sys-api3.dev.bgdi.ch/rest/services/ech/SearchServer?searchText=Landstrasse%208595%20Altnau&type=locations

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, all good then ✅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants