Undefine Address Issue

jhoemar6 years ago

Good day,
I am using locationiq as my reverse geocoding in traccar but still i get undefined address in route report but once i click the undefined link it show the address. Is there a way to automatically show the address without clicking the undefined link?

TIA

Anton Tananaev6 years ago

What does your config look like?

jhoemar6 years ago

here is my config

    <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'>9804b4762104f9</entry>

    <entry key ='geocoder.onRequest'>true</entry>
    <entry key ='geocoder.ignorePositions'>true</entry>
    <entry key ='geocoder.reuseDistance'>100</entry>
    <entry key ='geocoder.cacheSize'>30000</entry>
    <entry key = 'server.timeout'>500</entry>
    <entry key = 'filter.enable'>true</entry>
    <entry key = 'filter.distance'>150</entry>
Anton Tananaev6 years ago

I would recommend you to read documentation on the parameters that you've used, specifically geocoder.ignorePositions, which disables the functionality that you are asking for. Why did you add it?

jhoemar6 years ago

Thanks Anton!
I will take of that and review my configuration and will get back to you and show you my new config :)

jhoemar6 years ago

here is my new config.
Any advice is much appreciated :D

    <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'>9804b4762104f9</entry>
    <entry key ='geocoder.onRequest'>true</entry>
    <entry key ='geocoder.processInvalidPositions'>true</entry>
    <entry key ='geocoder.reuseDistance'>100</entry>
    <entry key ='geocoder.cacheSize'>30000</entry>
    <entry key = 'server.timeout'>500</entry>
    <entry key = 'filter.enable'>true</entry>
    <entry key = 'filter.distance'>150</entry>

    <entry key='logger.enable'>true</entry>
    <entry key='logger.level'>all</entry>
    <entry key='logger.file'>./logs/tracker-server.log</entry>
Anton Tananaev6 years ago

It should work now. Obviously it won't work for the old data, only for the new.

jhoemar6 years ago

Thanks Anton,
It's now working perfect :)

Blue Eyes5 years ago

Hello Anton. I got this to work on my server but the issue I am having is that the log file went from 2-3MB a day for one tracker to 2-3GB. Is there a way to drastically reduce this back to MB without having to remove it altogether? I really just want the addresses to show in the reports only.

Anton Tananaev5 years ago

Enabling or disabling geocoding would not affect size of the log files. Your issue is with something else.

Blue Eyes5 years ago

Thanks for the reply Anton. Interesting because it only started happening after enabling and this was the only configuration change made. I used the exact code posted by jhoemar.

Anton Tananaev5 years ago

I'm assuming you have already checked the log before asking for help here, right?

Blue Eyes5 years ago

I have tried so many times to open but, because the files are so big it freezes the editor or says it can't open. Tried Putty and it tries to read but it kills itself. If I change logger level back to info, would that matter?

Blue Eyes5 years ago

Looks like changing logger.level back to info fixed it. Addresses still show up and the tracker-server.log file is back to how it used to be (small). Thanks Anton. I know I basically helped myself by I appreciate you taking the time to answer. :)