This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

timeouts using geopy

0

I have an application that has been running successfully but today i keep getting timeouts error and the bottom of the trace has: geopy.exc.GeocoderUnavailable: HTTPSConnectionPool(host=‘nominatim.openstreetmap.org’, port=443): Max retries exceeded with url: /search?q=Moscow&format=json&limit=1&addressdetails=1&namedetails=1&accept-language=en (Caused by ReadTimeoutError(“HTTPSConnectionPool(host=‘nominatim.openstreetmap.org’, port=443): Read timed out. (read timeout=1)”))

I would appreciate some help/suggestion on this matter. Best regards.

asked 24 Aug '23, 18:40

Margherita's gravatar image

Margherita
11112
accept rate: 0%

It's likely what InsertUser guessed - or some other party misusing the demo nominatim endpoints. I've seen those timeouts today as well using a browser and the nominatim ui frontend at nominatim.osm.org (or the nominatim search field at osm.org).

If you do need a reliable service you may install nominatim yourself or use a third party provider, some are listed here: https://wiki.openstreetmap.org/wiki/Nominatim#Alternatives_.2F_Third-party_providers

(26 Aug '23, 14:36) Spiekerooger

One Answer:

1

My guess is you are exceeding what is allowed by the nominatim.openstreetmap.org usage policy.

answered 26 Aug '23, 13:50

InsertUser's gravatar image

InsertUser
11.0k1369185
accept rate: 19%

Source code available on GitHub .