Traccar V4.9 geocoder stopped working

ilevans4 years ago

Hi Anton

I upgraded to Traccar V4.9 from V4.7 yesterday and now the reverse geocoder is not working. Configuration is the same.

    <entry key='geocoder.enable'>true</entry>
    <entry key='geocoder.type'>here</entry>
    <entry key='geocoder.id'>xxxxxxxxxx</entry>
    <entry key='geocoder.key'>xxxxxxxxxx</entry>

Any advice?

Regards, Ian

Anton Tananaev4 years ago

Maybe related to this:

https://github.com/traccar/traccar/pull/4472

What's the error?

ilevans4 years ago

I have looked in the log file and found the following.

2020-07-08 06:09:10  WARN: Geocoder network error - HTTP 401 Unauthorized - NotAuthorizedException (... < JsonGeocoder:114 < ServerResource:57 < ...)
ilevans4 years ago

As a work around I am trying to switch to LocationIQ but get the following error popping up.

Received fatal alert: handshake_failure - SSLHandshakeException (... < JsonGeocoder:114 < ServerResource:57 < ...)Received fatal alert: handshake_failure - SSLHandshakeException (... < JsonGeocoder:114 < ServerResource:57 < ...)

The configuration I am using is.

    <entry key='geocoder.enable'>true</entry>
    <entry key='geocoder.type'>nominatim</entry>
    <entry key='geocoder.url'>https://us1.locationiq.com/v1/reverse.php</entry>
    <entry key='geocoder.key'>XXXXXXXXXX</entry>

I haven't used LocationIQ before and just followed the instruction in https://www.traccar.org/reverse-geocoding/.

Anton Tananaev4 years ago
ilevans4 years ago

Thanks Anton,

I followed the instructions and managed to get LocationIQ working but the quality of the address is insufficient for my liking. I reverted my configuration.

When I reverted my configuration traccar would not start again.

I have uninstalled and re-installed V4.9 again. I will have to wait to find out why the here geocoding is not work in V4.9. I may restore my backup of V4.7 if the cause is not easily corrected.

No Error message pops up when I click on show address, only the log file shows the 401 message.

Regards, Ian

Anton Tananaev4 years ago

Are you using API KEY from HERE? Or legacy app code?

ilevans4 years ago

I have read a bit more on here and I am using the legacy app code, not the API KEY.

Anton Tananaev4 years ago

Try API key.

ilevans4 years ago

Hi Anton,

That is what was causing my issue. V4.9 requires the new here authentication of APP ID and API KEY instead of the legacy authentication of APP ID and APP CODE.

Thank you for pushing me in right direction. :-)

Cheers, Ian