What is the point in adding reverse geocoding settings?

thefunkygibbon17 days ago

Hi all,
Quick and easy question. What is the point in the reverse geocoding lines you can add to the config file.

Also what is the point in <entry key='geocoder.onRequest'>false</entry>

and lastly, if it was all working, how should i "see" that it is working? Log files showing that it is doing the reverse lookup each time the coords get sent to traccar? anything else? visually within the GUI anywhere?

Thanks in advance

Anton Tananaev17 days ago

Reverse geocoding is needed to convert coordinates into a human readable address. That's the point. If it's working, you should have the address in the UI.

thefunkygibbon17 days ago

ok, well as i said in my previous post. its ignoring that onrequest:false setting and seemingly ignoring the correct reverse geocoding config.

I see the "show address" button and i can click on it and get the rough address. thats fine. but I assume there must be a reason for wanting to add specific geocoding config to the settings of traccar?

if i change the API key or URL of the geocoder config, the "show address" no longer works. (although even with the correct config , it never shows automatically the address itself, I always have to click on the show address button.

its like its ignoring all my config settings. and its driving me nuts

thefunkygibbon17 days ago
<properties>

    <!-- Documentation: https://www.traccar.org/configuration-file/ -->

    <entry key='database.driver'>org.h2.Driver</entry>
    <entry key='database.url'>jdbc:h2:./data/database</entry>
    <entry key='database.user'>sa</entry>
    <entry key='database.password'></entry>
    <entry key='geocoder.enable'>true</entry>
    <entry key='geocoder.type'>locationiq</entry>
    <entry key='geocoder.url'>https://eu1.locationiq.com/v1/reverse.php</entry>
    <entry key='geocoder.key'>qwewqewqewqeqwe</entry>
    <entry key='geocoder.onRequest'>false</entry>
    <entry key='geocoder.format'>%h %r, %t, %s, %c</entry>
    <entry key='geocoder.reuseDistance'>0</entry>
    <entry key='geolocation.enable'>true</entry>
    <entry key='geolocation.type'>opencellid</entry>
    <entry key='geolocation.key'>pwerwerwerwerwerweerwerwer</entry>
    <entry key='event.motion.enable'>true</entry>
    <entry key='event.geofence.enable'>true</entry>
    <entry key='filter.enable'>true</entry>
    <entry key='filter.distance'>15</entry> <!-- Minimum distance in meters between points -->
    <entry key='filter.maxSpeed'>240</entry> <!-- Maximum valid speed in km/h -->
    <entry key='filter.invalid'>true</entry> <!-- Ignore invalid data -->
    <entry key='filter.duplicate'>true</entry> <!-- Ignore duplicate data -->

</properties>
thefunkygibbon17 days ago

seeing nothing in the logs to imply that its doing any kind of lookup after receiving the coords from the tracker .

2025-04-22 00:03:43  INFO: [Tb73c8df4: h02 < 31.94.6.22] 24917019039800034222042552342259050001518206000000fffffbff00c31a0b0d>
2025-04-22 00:03:43  INFO: Position filtered by Distance filters from device: 9170190398
2025-04-22 00:03:46  INFO: [Tc6119db2] disconnected

the config file is 100% being used because the container doesnt even start if i rename that file. and obviously if the url/api key change to be something invalid that the show address doesnt work. so its definitely being used.

if feels like i must be missing some other line of config for it to work??

Anton Tananaev17 days ago

If you want reverse geocoding to work automatically, you have to set this config parameter:

<entry key='geocoder.ignorePositions'>false</entry>
thefunkygibbon17 days ago

thanks, I've now added that and restarted, (i've had that in my config before) everything is behaving exactly the same as i have already described. logs, button, etc.

Anton Tananaev17 days ago

If all your data is filtered, obviously you won't see any changes.