Hi
If you search for https://api3.geo.admin.ch/rest/services/api/SearchServer?searchText=Christoffelgasse%205%20Bern&type=locations
Everything works fine
The official Zip is “Christoffelgasse 5 3011 Bern” 3003 is an auxillary zip which is not official
David
--
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/3e5478b1-6bd6-48a8-86b1-7d96d5d0855bn%40googlegroups.com.
Indeed it works in the browser. However, I am getting the error when sending requests via Postman or with a script.
Are there any parameters that need to be defined in request headers?
Full error trace is:
You received this message because you are subscribed to a topic in the Google Groups "GeoAdminCh API" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/geoadmin-api/8yIrwgQI0HU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to geoadmin-api...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/geoadmin-api/9587b3c533854cb79a46e24ae0a345de%40swisstopo.ch.
Try with GET parameter
To view this discussion on the web visit https://groups.google.com/d/msgid/geoadmin-api/CA%2BEAj%2BoRq4N8xxYAZVxsWEDGMNd%3DBOJozC4ZpQto%2Btd5d-yGVw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/geoadmin-api/aa2d51ea40c9411bab07ab11369d9467%40swisstopo.ch.
Magdalena
To view this discussion on the web visit https://groups.google.com/d/msgid/geoadmin-api/f229a642-22d1-4309-a9d9-6cd87e1e0382n%40googlegroups.com.