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

i have use “node-geocoder” and getting “ECONNREFUSED” error

0

i had no any problem but last two days i hve getting this type of error

err HttpError: request to http://nominatim.openstreetmap.org/reverse?lat=-11.9795359&lon=-77.0425113&format=json&addressdetails=1 failed, reason: connect ECONNREFUSED 140.100.167.100:80

name: 'HttpError', message: 'request to ' + 'http://nominatim.openstreetmap.org/reverselat=-11.9795359&lon=-77.0425113&format=json&addressdetails=1 ' + 'failed, reason: connect ECONNREFUSED 140.100.167.100:80', code: 'ECONNREFUSED'

asked 17 Jan '22, 08:07

gabu%20hetal's gravatar image

gabu hetal
11112
accept rate: 0%


One Answer:

2

Is your server capable of following 301 redirects and to handle secure connections (as http://nomi... redirects to https:nomi... and uses ssl)?

Did you read the documentation at https://nominatim.org/release-docs/latest/ ? E.g. it recommends to include an email parameter with your contact address.

Did you read and follow the Nominatim Usage Policy found here: https://operations.osmfoundation.org/policies/nominatim/ ? E.g. did you include an unique user agent, did you follow the rate limiting? If not, you will get blocked.

In general it's not recommended to use the public Nominatim instances that are funded by donations if you need higher usage volumes or want to include them in an app or commercial use case. The Nominatim wiki page lists some third-party providers (see https://wiki.openstreetmap.org/wiki/Nominatim#Alternatives.2FThird-party_providers ) for that, alternatively you could run your own Nominatim instance.

answered 17 Jan '22, 09:08

Spiekerooger's gravatar image

Spiekerooger
3.1k22356
accept rate: 16%

edited 17 Jan '22, 09:34

Source code available on GitHub .