nominatim traccar

wadaboc683a year 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-tracea year ago

You have removed this from config and restarted ?

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

Anton Tananaeva year ago

Have you checked logs for errors?

wadaboc683a year ago

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

wadaboc683a year ago

@anton
no any errors in tracker-server.log

Anton Tananaeva year ago

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

wadaboc683a year 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 Tananaeva year 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.
wadaboc683a year 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 Tananaeva year ago

Check the AddressFormat class in the source code.

Massimoa year 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.

jay8 months ago

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

Massimo8 months 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-trace8 months 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).

Massimo8 months 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).