Geocoder network error - HTTP 400 Bad Request

Slawek 2 years ago

After upgrade from 4.12 to 5.12 i have problem with geocoder

WARN: Geocoder network error - HTTP 400 Bad Request - BadRequestException (... < JsonGeocoder:126 < ServerResource:124 < ... < OverrideFilter:49 < ...)

traccar.xml

    <entry key='geocoder.enable'>true</entry>
    <entry key='geocoder.type'>here</entry>
    <entry key='geocoder.url'>https://reverse.geocoder.api.here.com/6.2/reversegeocode.json</entry>
    <entry key='geocoder.id'>xxxxxxxxxxxxxxxxxxxxxxx</entry>
    <entry key='geocoder.key'>xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx</entry>
    <entry key='geocoder.reuseDistance'>10</entry>

traccar.service

ExecStart=/opt/traccar/jre/bin/java -Xmx512M -Djdk.tls.client.protocols=TLSv1.2 -jar tracker-server.jar conf/traccar.xml

with default traccar.service is same problem

OS ubuntu server 16.04

Anton Tananaev 2 years ago

You shouldn't need to provide the URL. And make sure you provide an API key.

Slawek 2 years ago

When I removed url geocoder working only when I click 'show adress' (old gui) but not save addreses in to database

Anton Tananaev 2 years ago

That has nothing to do with URL. It's other configuration parameters from default configuration.

Slawek 2 years ago

Ok, I found

https://www.traccar.org/reverse-geocoding/

Additional parameters

<entry key='geocoder.onRequest'>false</entry>
<entry key='geocoder.ignorePositions'>false</entry>

Thx.