How to get information about POIs of the Base Map

25 views
Skip to first unread message

Heinrich Baur

unread,
Apr 15, 2025, 4:59:47 AMApr 15
to GeoAdminCh API
I am trying to integrate the swisstopo Base Map with Openlayers and olms.js  into my app. This map contains many POIs. I would like to get as much information as possible when I click on one of them. I know how to use map.forEachFeatureAtPixel to find jsons providing a very limited amount of data. But there are properties in the jsons that presumably are keys to extended information. These properties are named “api_id”, “station_id”, and “weather_id”. By trial and error I have found two cases where I can use these IDs. I can use the station_id to find a htmlPopup in the layer “ch.bav.haltestellen-oev” and when the subclass is “alpine_hut” I can use the api_id to create a link to the SAC web site. But there must be more applications of these IDs. Where can I get weather data using the weather_id? Is there any documentation about the use of these IDs?
Reply all
Reply to author
Forward
0 new messages