0 longitude and 0 latitude

CCPlusIT8 years ago

I have a situation with some trackers that when having been in sleep mode, on vibration activation will send data several times to the server with 0 longitude and 0 latitude or Valid No before sending valid data. The problem is that it then shows the tracker located on the equator so causes the map to zoom out to contain all the plots. Is there a way to filter out any 0 longitude and latitude or Valid No.

See screen shots: https://www.screencast.com/t/SOCsKYvr and https://www.screencast.com/t/3eaQdQaVDnE

Anton Tananaev8 years ago

Yes, there is. Please read documentation:

https://www.traccar.org/configuration-file/

CCPlusIT8 years ago

Thank you for a quick reply, I have added this line

<!-- Custom Settings -->
<entry key='filter.zero'>true</entry>

to just before <!-- DATABASE CONFIG --> and restarted the Traccar server.

Am I doing it correctly?

Anton Tananaev8 years ago

You have to enable filtering as well.

CCPlusIT8 years ago

Thank you I have added as below.

<!-- Custom Settings -->
<entry key='filter.enable'>true</entry>
<entry key='filter.zero'>true</entry>