Geocoder

Jérôme4 months ago

Hello since version 6.3, my geocoder no longer works.
Before I had the addresses like this:
466 Rue des Saules, 59262 Sainghin-en-Mélantois

Since 6.3:
Rue des Saules, 59262 Sainghin-en-Mé

So the number has disappeared and there is something weird...

My config:

    <entry key='geocoder.enable'>true</entry>
    <entry key='geocoder.type'>ban</entry>
    <entry key='geocoder.onRequest'>false</entry>
    <entry key='geocoder.ignorePositions'>false</entry>
    <entry key='geocoder.reuseDistance'>10</entry>
    <entry key='geocoder.format'>%r, %p %t, %s, %c</entry>

Do you have an idea ?

THANKS

Anton Tananaev4 months ago
jinzo4 months ago

I'm on vacations but will try to help as soon as possible. First question would be if you can provide the coordinates for this result? Did you update the format when upgrading 6.3? As some fields changed, and you need to update the format. The encoding issue is a bit weird, but will check it as soon as possible.

Jérôme4 months ago

No I don't update the format. Do you have a tutorial to give me?

jinzo4 months ago

https://github.com/traccar/traccar/blob/master/src%2Fmain%2Fjava%2Forg%2Ftraccar%2Fgeocoder%2FAddressFormat.java

Is the format specification, so you need to add %h in front of %r to get the house number back.

Jérôme4 months ago

Its OK :

<entry key='geocoder.format'>%h, %r, %p %t, %s, %c</entry>

thx all

jinzo4 months ago

So no more encoding problems (Sainghin-en-Mé)? or was that just copy/paste problem?

Jérôme4 months ago

No more problem