Address is not saved in the database

yawehrafa9 years ago

Good Morning.

I'm doing some tests with Traccar Client on iOS, but it is not saving the address in the database (table "positions", field "address").
I enabled the geocoder Google, Gisgraphy and Nominatim, but does not work.

My server is in version 3.3.

Anton Tananaev9 years ago

Try to add "geocoder.processInvalidPositions" with value "true" to the config.

yawehrafa9 years ago

Did not work. Try the following settings:

    <entry key='geocoder.enable'>true</entry>
    <entry key='geocoder.type'>gisgraphy</entry>
    <entry key='geocoder.processInvalidPositions'>true</entry>
    <entry key='geocoder.url'>http://services.gisgraphy.com/street/streetsearch</entry>

    <entry key='geocoder.enable'>true</entry>
    <entry key='geocoder.type'>nominatim</entry>
    <entry key='geocoder.processInvalidPositions'>true</entry>
    <entry key='geocoder.url'>http://nominatim.openstreetmap.org/reverse</entry>

I'm sorry for English. I'm from Brazil.

Anton Tananaev9 years ago

Have you restarted server after changing settings? I recommend to try Google. It works for me. I just double-checked everything.

yawehrafa9 years ago

Yes, always restart the server. I switched to "Google" but did not work.

tracker-server.log

2016-02-24 20:31:07  INFO: Starting server...
2016-02-24 20:32:23  INFO: [E9502777] connected
2016-02-24 20:32:24 DEBUG: [E9502777: 5055 < 177.38.8.42] HEX: 474554202f3f69643d3635343332312674696d657374616d703d31343536333535303236266c61743d2d32362e383839343133266c6f6e3d2$
2016-02-24 20:32:24 DEBUG: [E9502777: 5055 > 177.38.8.42] HEX: 485454502f312e3120323030204f4b0d0a0d0a
2016-02-24 20:32:24  INFO: [E9502777] disconnected
2016-02-24 20:32:24  INFO: [E9502777] id: 2, time: 2016-02-24 20:03:46, lat: -26.88941, lon: -52.41727, speed: 0.0, course: 0.0
2016-02-24 20:32:24  INFO: [C69C4B4D] connected
2016-02-24 20:32:24 DEBUG: [C69C4B4D: 5055 < 177.38.8.42] HEX: 474554202f3f69643d3635343332312674696d657374616d703d31343536333536373433266c61743d2d32362e383838393231266c6f6e3d2$
2016-02-24 20:32:24 DEBUG: [C69C4B4D: 5055 > 177.38.8.42] HEX: 485454502f312e3120323030204f4b0d0a0d0a
2016-02-24 20:32:24  INFO: [C69C4B4D] disconnected
2016-02-24 20:32:24  INFO: [C69C4B4D] id: 2, time: 2016-02-24 20:32:23, lat: -26.88892, lon: -52.41647, speed: 0.0, course: 0.0
2016-02-24 20:33:23  INFO: [E5ADD88E] connected
2016-02-24 20:33:23 DEBUG: [E5ADD88E: 5055 < 177.38.8.42] HEX: 474554202f3f69643d3635343332312674696d657374616d703d31343536333536383033266c61743d2d32362e383839363534266c6f6e3d2$
2016-02-24 20:33:23 DEBUG: [E5ADD88E: 5055 > 177.38.8.42] HEX: 485454502f312e3120323030204f4b0d0a0d0a
2016-02-24 20:33:23  INFO: [E5ADD88E] disconnected
2016-02-24 20:33:23  INFO: [E5ADD88E] id: 2, time: 2016-02-24 20:33:23, lat: -26.88965, lon: -52.41736, speed: 0.0, course: 0.0

traccar.xml

<?xml version='1.0' encoding='UTF-8'?>

<!DOCTYPE properties SYSTEM 'http://java.sun.com/dtd/properties.dtd'>

<properties>

...

    <entry key='geocoder.enable'>true</entry>
    <entry key='geocoder.type'>google</entry>
    <entry key='geocoder.processInvalidPositions'>true</entry>

...

</properties>

traccar.cfg

<?xml version='1.0' encoding='UTF-8'?>

<!DOCTYPE properties SYSTEM 'http://java.sun.com/dtd/properties.dtd'>

<properties>

...

</properties>
Anton Tananaev9 years ago

Why do you have "traccar.cfg"? It's not part of version 3.3.

yawehrafa9 years ago

Now I removed the file "traccar.cfg", restarted the server but the address field remains null.

Anton Tananaev9 years ago

I would recommend to try on clean install. You might have old versions of something else as well. Another reason why it doesn't work can be a network issue.

yawehrafa9 years ago

With version 3.4 worked perfectly.