Geocoder

Jérômea year 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 Tananaeva year ago
jinzoa year 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ômea year ago

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

jinzoa year 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ômea year ago

Its OK :

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

thx all

jinzoa year ago

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

Jérômea year ago

No more problem