I was able to verify that LocationIQ returns valid json. I did this on the same host as where traccar is installed.
curl --request GET \
--url 'https://us1.locationiq.com/v1/reverse.php?key=my_key&lat=-37.870662&lon=144.9803321&format=json'
I used the lat/long on the LocationIQ as an example so this is not my private location.
{"place_id":"332903630256","osm_type":"node","osm_id":"2525193585","licence":"https:\/\/locationiq.com\/attribution","lat":"-37.870662","lon":"144.980332","display_name":"Imbiss 25, St Kilda South, St Kilda, Port Phillip, Victoria, Australia, 3182","boundingbox":["-37.870662","-37.870662","144.980332","144.980332"],"importance":0.25,"address":{"name":"Imbiss 25","neighbourhood":"St Kilda South","city":"St Kilda","county":"Port Phillip","state":"Victoria","country":"Australia","postcode":"3182","country_code":"au"}}
Figured out the issue. I didn't have the correct path mapped in my docker container. The documentation to map your volume for an external config file is incorrect on this page - https://www.traccar.org/docker/. The correct path based on updated documentation on dockerhub is -v /var/docker/traccar/traccar.xml:/opt/traccar/conf/traccar.xml:ro . Please update your docs.
my server is in a windows I can not even enable to show me the address, greetings from Colombia
<entry key="geocoder.enable">false</entry>
<entry key="geocoder.type">google</entry>
to:
<entry key='geocoder.enable'>true</entry>
<entry key='geocoder.type'>nominatim</entry>
I'm having the same problem, I'm using a nominatim service that released to my central ip,
in the browser I can see it working,
but when I get the address in the central, I get the same error message reported above.
Reverse geocoding is not enabled - RuntimeException (ServerResource:59 < ...)
my default.xml file (inside C: \ Program Files \ Traccar \ conf) looks like this.
<entry key='geocoder.enable'>true</entry>
<entry key='geocoder.type'>nominatim</entry>
<entry key='geocoder.url'>http://188.40.20.228/nominatim/reverse.php</entry>
<entry key='geocoder.format'>%r, %h, %u, %t - %s</entry>
I cannot get reverse geocoding to work. The message on the front end indicates that reverse geocoding is not enabled. But it is in the config file and from what I can tell, it should be enabled.
There are no log messages indicating an issue either. Is there anything else I can check to continue to triage this?