Geocoding problems

Slawek4 years ago

token

Macan4 years ago

Try to reinstall traccar.

Slawek4 years ago

He has wrong token, better make new account at https://locationiq.com/

Anton Tananaev4 years ago

Reinstalling definitely won't solve any problem.

Thomas Svanelind4 years ago

Why can I use the token in a web browser?

Slawek4 years ago

you use wrong token, read carefull what we tell you

Slawek4 years ago

access-token

Slawek4 years ago

Did you created token via this form ? After create token via this form token start from pk....
This is wrong token for traccar, use token from first email

Slawek4 years ago

email

You can find this token in control panel also, look first screen above.

Thomas Svanelind4 years ago

I have tried the access token as well but it did not work.
Every token I have has worked with this

https://eu1.locationiq.com/v1/reverse.php?key=pk.26c58f24d33c61f2885687c4a5e1e576&&lat=59.129027&lon=12.892395&format=json

but not with Traccar.

Slawek4 years ago

try
edit:

/etc/systemd/system/traccar.service

change

#ExecStart=/opt/traccar/jre/bin/java -jar tracker-server.jar conf/traccar.xml
ExecStart=/opt/traccar/jre/bin/java -Djdk.tls.client.protocols=TLSv1.2 -jar tracker-server.jar conf/traccar.xml
sudo systemctl daemon-reload

edit:

/opt/traccar/conf/default.xml
    <entry key='geocoder.enable'>true</entry>
    <entry key='geocoder.type'>nominatim</entry>
    <entry key='geocoder.url'>https://locationiq.org/v1/reverse.php</entry>
    <entry key='geocoder.key'>access_token_not_pk</entry>
sudo systemctl restart traccar.service
jay4 years ago

I have read on some post that on locationiq website when logining in and setting up you must enter the url, website not traccar ip address.

Thomas Svanelind4 years ago

Stupid me!!
I have been away from Traccar a while but upgraded to version 4.8 and realized that I have made a typo.
I wrote <entry key='geocoder'>nominatim</entry> and not
<entry key='geocoder.type'>nominatim</entry>