Reverse geocoding is not enabled

mohamed_fadol4 years ago

when press on show address i get message
1- Q ? how config it in order to get address

2- Q ? so when add the code

 ... 
<entry key='geocoder.onRequest'>true</entry>
<entry key='geocoder.ignorePositions'>true</entry> 
 ... 

through puTTy terminal i get

root@my-domain:/# <entry key='geocoder.onRequest'>true</entry>
-bash: syntax error near unexpected token `newline'
root@my-domain:/# <entry key='geocoder.ignorePositions'>true</entry>
-bash: syntax error near unexpected token `newline'
root@my-domain:/# <entry key='geocoder.onRequest'>true</entry>
-bash: syntax error near unexpected token `newline'
Anton Tananaev4 years ago

You have to add it to the config file.

mohamed_fadol4 years ago

thanks sir @Anton for qu-answer

I did On both file defualt.xml and traccar.xml and save both , but i get the same message

mohamed_fadol4 years ago

in below way in traccar.xml :

<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE properties SYSTEM 'http://java.sun.com/dtd/properties.dtd'>
<properties>
    <entry key="config.default">./conf/default.xml</entry>
    <entry key='database.driver'>com.mysql.jdbc.Driver</entry>
    <entry key='database.url'>jdbc:mysql://localhost/traccar?serverTimezone=UTC&amp;useSSL=false&amp;allowMultiQueries=true&amp;autoReconnect=true&amp;useUnicode=yes&amp;characterEncoding=UTF-8&amp;sessionVariables=sql_mode=''</entry>
    <entry key='database.user'>my-user</entry>
    <entry key='database.password'>my-password</entry>
    <entry key='geocoder.onRequest'>true</entry>
    <entry key='geocoder.ignorePositions'>true</entry> 
</properties>

the question : it need to run tracare again ?

Javier Gonzalez4 years ago

Read the docs here..
Reverse Geocoding

then restart traccar... and voila.