Access information of specific map layer(s) for specific geo location (e.g. address) using REST API

47 views
Skip to first unread message

Raphael Stadler

unread,
May 28, 2021, 6:16:55 AM5/28/21
to GeoAdminCh API
Hello,

I am looking for a way how to access specific map layer(s) information for a given geo location (e.g. an address) using the REST API.
In particular, I am interested to access the geo information of the layers:
136: ch.bafu.laerm-strassenlaerm_nacht (Strassenverkehrslärm Nacht)
137: ch.bafu.laerm-strassenlaerm_tag (Strassenverkehrslärm Tag)

What I succeeded is to get more information about a specific location, e.g. as follows:

Request:

Response:
 {
    "results": [
        {
            "id": 497634833,
            "weight": 9,
            "attrs": {
                "origin": "address",
                "geom_quadindex": "021300202201312213122",
                "zoomlevel": 10,
                "featureId": "2242547_0",
                "lon": 7.444191932678223,
                "detail": "bundesplatz 3 3011 bern 351 bern ch be",
                "rank": 7,
                "geom_st_box2d": "BOX(600423.257 199521.109,600423.257 199521.109)",
                "lat": 46.946773529052734,
                "num": 3,
                "y": 600423.25,
                "x": 199521.109375,
                "label": "Bundesplatz 3 <b>3011 Bern</b>"
            }
        }
    ]
}

I guess some of this location information may be helpful for the further search for more geo information.

But, what I now am struggling with is how to get the information of the above mentioned layers 136 and 137 for this specific information.

Which API should be used for this purpose and how?
I am very thankful for any suggestions or guidance.

Thanks in advance and best regards,
Raphael

Marc Monnerat

unread,
Jun 4, 2021, 8:44:13 AM6/4/21
to geoadmin-api
Hello,

Sorry for the late answer. I'm not too familiar with these traffic noise layers, but this is a very sensitive topic. You may want to check with the data owner, but these are not actually measured values, but a calculated model and people don't want it to be precise.
As there is no service to retrieve the value of these layers, you may guess the value with the color of the WMTS tiles or WMS service. But again, be careful with what you are doing, this is only a model.

Regards,

Marc

--
You received this message because you are subscribed to the Google Groups "GeoAdminCh API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to geoadmin-api...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/geoadmin-api/377c7438-e4db-4ea6-ade0-f9bf4457144bn%40googlegroups.com.


--
--
Всё идёт по плану

Raphael Stadler

unread,
Jun 4, 2021, 10:20:09 AM6/4/21
to GeoAdminCh API
Hello Marc,

thank you very much for this information and the hint about the sensitivity of the data. Taking this sensitivity and the model character into account and only aiming to make use of it for my own private small project, I am looking for ways how to access this data (or indicators as e.g. the color code) through a REST API. Can you provide me with any suggestions on how to access the color values for a specific coordinate?
Besides the noise data I would also be interested in other map layer data. Maybe there is another layer which can serve as a good example to explain how to access according values for a desired coordinate / address.
Thanks to everyone for possible suggestions or thoughts.

Best regards,
Raphael

Reply all
Reply to author
Forward
0 new messages