nominatim traccar

wadaboc6832 years ago

installed nominatim on vps
used traccar reverse coding server to that server
everything is working fine but the address doesnt update after sometime

what am i missing??

Track-trace2 years ago

You have removed this from config and restarted ?

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

Anton Tananaev2 years ago

Have you checked logs for errors?

wadaboc6832 years ago

@track-trace
i have not added this config yet.

wadaboc6832 years ago

@anton
no any errors in tracker-server.log

Anton Tananaev2 years ago

If no error and the configuration and no errors in the logs, it probably means that your geocoder returned empty address.

wadaboc6832 years ago
  1. if geocoder returns empty address does traccar uses previous address?

  2. <entry key='geocoder.reuseDistance'>2000</entry>

i have used this
this seems to be working fine for sometimes
but after sometimes the address seems to be same for all coordinates

Anton Tananaev2 years ago
  1. No.
  2. You're reusing the same address for locations within 2km distance. The value doesn't make any sense and that's also why you keep getting same address.
wadaboc6832 years ago

okay got it thanks
last question:
read documentation about geocoder.format config
"Address format string. Default value is %h %r, %t, %s, %c. See AddressFormat for more info."
can you link me to what this format means?? any url will do

once again thanks..

Anton Tananaev2 years ago

Check the AddressFormat class in the source code.

Massimo2 years ago

Is Nominatim in docker container?
Are you sure it’s working fine?

I’m using nominatim in vps docker with no problem. Check only restart policy of container….set it to always.

jaya year ago

Massimo, send process to install nominatim server in linux docker. thank you in advance

Massimoa year ago

jay, loook at mediagis/nominatim-docker on GitHub.
Pay attention on firewall rules to avoid everyone find publicly opened api.
You know docker override firewall exposing tcp port….Look at chaifeng/ufw-docker on GitHub.

Track-tracea year ago

@Massimo

It is easy to just restrict ip acces to just allow Traccar Server ip to acces nominatim server port.

But if you run your traccar server and your nominatim server on a local lan then it is not even needed. Since you only need to open a port to traccar server to have acces from the internet (while traccar server itself only connects to nominatim server through local lan).

Massimoa year ago

@Track-trace

Both Traccar and Nominatim run on separated VPS. Nominatim run on docker container, so firewall if is a bit more complicated (dedicated docker chain and restricted access to 2 different Traccar VPS IP).