Yes, you can enable automatic geocoding for every location. Read the doc:
By default reverse geocoding is only done when user requests reports or explicitly clicks "show address" button in the app. You can disable this behavior using the following parameters:
<entry key='geocoder.onRequest'>false</entry>
<entry key='geocoder.ignorePositions'>false</entry>
Thank you for the feedback!
Unfortunately, the same issue persists. I initially installed everything locally.
Could you please assist me? Below is my traccar.xml configuration file:
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE properties SYSTEM 'http://java.sun.com/dtd/properties.dtd'>
<properties>
<!-- Documentation: https://www.traccar.org/configuration-file/ -->
<entry key='database.driver'>com.mysql.cj.jdbc.Driver</entry>
<entry key='database.url'>jdbc:mysql://localhost:3306/traccar?useSSL=false&serverTimezone=UTC</entry>
<entry key='database.user'>root</entry>
<entry key='database.password'></entry>
<!-- Server settings -->
<entry key='web.address'>0.0.0.0</entry>
<entry key='web.port'>8082</entry>
<entry key='geocoder.enable'>true</entry>
<entry key='geocoder.onRequest'>false</entry>
<entry key='geocoder.ignorePositions'>false</entry>
<entry key='geocoder.reuseDistance'>10</entry>
<entry key='geocoder.type'>nominatim</entry>
<entry key='geocoder.url'>https://nominatim.openstreetmap.org/reverse</entry>
</properties>
What do you mean by persist? If you just changed it, it will apply to the new data only.
Apologies!
I just want to share my code. If you are willing, please help me.
Below is my traccar.xml configuration:
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE properties SYSTEM 'http://java.sun.com/dtd/properties.dtd'>
<properties>
<!-- Documentation: https://www.traccar.org/configuration-file/ -->
<entry key='database.driver'>com.mysql.cj.jdbc.Driver</entry>
<entry key='database.url'>jdbc:mysql://localhost:3306/traccar?useSSL=false&serverTimezone=UTC</entry>
<entry key='database.user'>root</entry>
<entry key='database.password'></entry>
<!-- Server settings -->
<entry key='web.address'>0.0.0.0</entry>
<entry key='web.port'>8082</entry>
<entry key='geocoder.enable'>true</entry>
<entry key='geocoder.onRequest'>false</entry>
<entry key='geocoder.ignorePositions'>false</entry>
<entry key='geocoder.reuseDistance'>10</entry>
<entry key='geocoder.type'>nominatim</entry>
<entry key='geocoder.url'>https://nominatim.openstreetmap.org/reverse</entry>
</properties>
It seems you do not understand. The config is correct. But you will need to restart the server for the new config and then it will only work for future positions (not the old data).
Or are you saying you already used the config above in the past ?
Yes, I have already restarted the server. What I want is for the addresses to display automatically in the reports, without needing to click "Show Address" for each position.
I think you're still missing the key point - it will apply only to the future data.
Thank you for the feedback!
Here is my traccar.xml code:
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE properties SYSTEM 'http://java.sun.com/dtd/properties.dtd'>
<properties>
<!-- Documentation: https://www.traccar.org/configuration-file/ -->
<entry key='database.driver'>com.mysql.cj.jdbc.Driver</entry>
<entry key='database.url'>jdbc:mysql://localhost:3306/traccar?useSSL=false&serverTimezone=UTC</entry>
<entry key='database.user'>root</entry>
<entry key='database.password'></entry>
<!-- Server settings -->
<entry key='web.address'>0.0.0.0</entry>
<entry key='web.port'>8082</entry>
<entry key='geocoder.enable'>true</entry>
<entry key='geocoder.onRequest'>false</entry>
<!-- <entry key='geocoder.ignorePositions'>false</entry> -->
<entry key='geocoder.reuseDistance'>500</entry>
<entry key='geocoder.type'>nominatim</entry>
<entry key='geocoder.url'>https://nominatim.openstreetmap.org/reverse</entry>
</properties>
If <entry key='geocoder.ignorePositions'>false</entry>
, the position displays correctly without needing to click on "Show Address," but it is not saved in the database.
Hello,
I would like to know if it is possible to modify Traccar to display the full address directly in the reports instead of having to click on "Show Address" for each entry to view the exact location. This would save time and improve usability.
I've attached a screenshot for clarity. Any guidance or advice would be greatly appreciated!
Screenshot: Include your screenshot showing the "Show Address" feature in the report.