Missing property "hikingtype" for "Wanderwege"

39 views
Skip to first unread message

Heinrich Baur

unread,
Nov 14, 2024, 5:21:45 AM11/14/24
to GeoAdminCh API
When I try to identify an "Alpinwanderweg":
Then I get the following JSON:
{
    "results": [
        {
            "layerBodId": "ch.swisstopo.swisstlm3d-wanderwege",
            "layerName": "Wanderwege",
            "featureId": 44818,
            "id": 44818,
            "properties": {
                "hikingtype": "Alpinwanderweg",
                "bridgetype": "Keine",
                "tunneltype": "Keine",
                "label": 44818
            }
        }
    ]
}
This is what I am expecting with the "hikingtype" "Alpinwanderweg"
But when I try to identify a common "Wanderweg":
Then the "hikingtype" is missing in the resulting JSON:
{
    "results": [
        {
            "layerBodId": "ch.swisstopo.swisstlm3d-wanderwege",
            "layerName": "Wanderwege",
            "featureId": 24401,
            "id": 24401,
            "properties": {
                "hikingtype": null,
                "bridgetype": null,
                "tunneltype": null,
                "label": 24401
            }
        }
    ]
}
Will the property "hikingtype" be available again in the future or do I have to give up this feature?

Thanks and best regards
Heiri

GeoAdminCh API

unread,
Dec 12, 2024, 9:28:26 AM12/12/24
to GeoAdminCh API
Hello 
Thanks for your question. 
Unfortunately this is not an official way/service to use the hiking trail data (in fact it's a relict from the past that will be cleaned-up sooner or later). Officially, the TLM hiking trails are implemented as a simple layer without attribute information. On map geo.admin.ch, no tooltip information is provided accordingly: https://s.geo.admin.ch/km5u42rnrmrf .
In order to get the full vector information, there's an open data offer for download (the hiking trails from swissTLM3D are available as File Geodatabase or Geopackage): https://data.geo.admin.ch/browser/index.html#/collections/ch.swisstopo.swisstlm3d-wanderwege
For further information about the landscape model product swissTLM3D please consult https://www.swisstopo.admin.ch/en/landscape-model-swisstlm3d

Best regards
Helpdesk federal geoportal geo.admin.ch

Reply all
Reply to author
Forward
0 new messages