Why can't adress Buehlstrasse 2, Weggis, Switzerland not resolve via API?

We are an Energy provider Company, that uses your Map Service.
Under: https://www.ckw.ch/examples/apps/fernwaermerechner-weggis
We host a Calculator who generates Quotes for Destrictheating.

It works for all the Adresses in the Village “Weggis” for Example:
-Buehlstrasse 7, Weggis
-Rigistrasse 24, Weggis
-Buehlstrasse 5, Weggis

BUT! It Doesn’t find: Buehlstrasse 2, Weggis
Fun fact: When I enter it directly into your Search: https://www.openstreetmap.org/search?query=buehlstrasse+2+weggis#map=19/47.032312/8.438893 I can find the Address, but not via Fernwärmerechner Weggis | CKW which pulls data directly from OSM.

Why could that be? Appreciate your Help.

Thanks in Advance.

To clarify, when I search for Buehlstrasse 2, Weggis, I get the following:

And when I click on the address, I get:

Is this the issue you are talking about?

The second point is, what do you mean when you say “your Map Service”? Are you using Nominatim to geocode/reverse geocode an address?

Are you sure you’re using OSM for geocoding? The website sends requests to https://www.geo.admin.ch/ after entering an address

GET https://api3.geo.admin.ch/rest/services/api/SearchServer?type=locations&searchText=Buehlstrasse%202,%20Weggis


And if you are using the OSM hosted Nominatim server, please make sure you follow the usage policy: Nominatim Usage Policy (aka Geocoding Policy)

2 Likes

Hi Hocu, Thanks for your reply.
As I work with an Agency, I dont know exactly how it’s done, it’s just strange, that the other addresses all work flawlessly and the one I mentioned doesn’t. Do you have any idea, what it could be?

No idea, to be honest. Like Woazboat mentioned, I can see some requests are being made to servers other than OSM, and those return errors, a 400 Bad Request specifically.

I suggest contacting the agency in this case.

Alright. Thank you both!

Ehrlich gesagt sehe ich da nichts, dass in irgendeine Form auf die Verwendung von OSM hinweist, ausser den falschen Quellenhinweis (OSM bietet keine Luftbilder an). Wir (sosm.ch) sind gerne bereit euch zu unterstützen, aber ich denke ihr solltet zuerst einmal bei der Agentur abklären was genau Sache ist.