Nominatim - WARN: Geocoding failed - Connection refused

Don4 years ago

today I found:

WARN: Geocoding failed - Connection refused (Connection refused) - ConnectException (...)
2020-08-06 18:14:17  INFO: [c675c570] id: 867060033461332, time: 2020-08-06 18:14:11, lat: -6.30281, lon: 106.65335, course: 165.0

in my /opt/traccar/logs

my traccar.xml config is as follow:

    <entry key='geocoder.enable'>true</entry>
    <entry key='geocoder.type'>nominatim</entry>
    <entry key='geocoder.url'>https://nominatim.openstreetmap.org/reverse</entry>

I don't think it requires an API Key, since I already use this address for a very long time without an API Key, I also have tried:

https://nominatim.openstreetmap.org/reverse?format=json&lat=-6.30281&lon=106.65335 and it returns correctly:

{"place_id":190434052,"licence":"Data © OpenStreetMap contributors, ODbL 1.0. https://osm.org/copyright","osm_type":"way","osm_id":478953221,"lat":"-6.30322645","lon":"106.65306995","display_name":"My Republic, Jalan Tol Serpong–Balaraja, BSD City, Tangerang, Banten, 15341, Indonesia","address":{"office":"My Republic","road":"Jalan Tol Serpong–Balaraja","suburb":"BSD City","state_district":"Tangerang","state":"Banten","postcode":"15341","country":"Indonesia","country_code":"id"},"boundingbox":["-6.3035037","-6.3029358","106.6526664","106.6534764"]}

what happen with that warning? .. what should I check with my traccar.xml?

many thanks

Anton Tananaev4 years ago

Please never use nominatim.openstreetmap.org service with Traccar.

Don4 years ago

noted with thanks Anton .. so this is a limitation of nominatim..

does Traccar support bigdatacloud for doing reverse geocode? (https://www.bigdatacloud.com/geocoding-apis/free-reverse-geocode-to-city-api)

if yes, need info how to configure traccar to use bigdatacloud.com

Anton Tananaev4 years ago

Quote from the website:

IMPORTANT! The API is to be used ONLY for client-side implementation. Any user detected abusing the service by implementing it on server-side will be blacklisted from all of our free API Services. If you wish to utilise this Reverse Geocoding API in your backend applications, please visit our server-side variation of this API for details.

Don4 years ago

Anton,
well noted with thank you.
but I want to clarify this, that we want to implement reverse geocoding to traccar by configuring traccar.xml, I just want to know if traccar currently support bigdatacloud or not.. if traccar supports it.. then I need your advice, what configuration should I put in my traccar.xml as below:

    <entry key='geocoder.enable'>true</entry>
    <entry key='geocoder.type'>need to know if bigdatacloud supported</entry>
    <entry key='geocoder.url'>need to know this if bigdatacloud supported</entry>