Settings do not save

smsoousa8 years ago

Hello Anton, I'm trying to set up the nominatim geocoder, but the address does not appear in the state of the device. I'm also configuring the Style.js file in the traccar/web/app folder to change the position of the date and time format, restarting the tracing service, but nothing changes as well. Can you tell me what might be happening?

smsoousa8 years ago

I stress that such changes worked perfectly in version 3.9

Anton Tananaev8 years ago

Usually no address means that you have some problem with geocoder provider or your configuration.

How is the topic name related to the question? Settings are not saved?

smsoousa8 years ago

My geocoder configuration is this:

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

It is configured both in traccar.xml and default.xml
But the address does not appear, only appears when I set up for google geocoder.

I am also editing the Style.js file to change some data such as:

dateTimeFormat24: 'Y-m-d H:i:s',
dateTimeFormat12: 'Y-m-d g:i:s a',
timeFormat24: 'H:i',
timeFormat12: 'g:i a',
dateFormat: 'Y-m-d',

for

dateTimeFormat24: 'd-m-Y H:i:s',
dateTimeFormat12: 'd-m-Y g:i:s a',
timeFormat24: 'H:i',
timeFormat12: 'g:i a',
dateFormat: 'd-m-Y',

and

mapDefaultLat: 12,470043,
mapDefaultLon: 78,494372,

for

mapDefaultLat: -17,470043,
mapDefaultLon: -58,494372,

After changing these data, I restart the service tracar but the changes do not validate, that is, they do not work. Everything remains the same, unlike version 3.9 that doing the changes, everything worked perfectly. For this reason the title of the question

smsoousa8 years ago

What could be happening?

Anton Tananaev8 years ago

I can see at least 4 issues straight away:

  1. You can't use free nominatim server. You either have to host your own server or use paid provider.
  2. After changing any JavaScript code, you have to compile a minified version.
  3. You should not change "default.xml" file.
  4. There is no need to change default location because it can be set in the server settings.

I can guarantee you that it won't work if you do exactly the same change on version 3.9, so if it worked, you clearly did something differently.

smsoousa8 years ago
  1. Ok. I will research how to do this procedure.
  2. At 3.9 I did not have to compile the code, all the modification ran effortlessly.
  3. I only changed because the configuration was for the google geocoder, first I had changed only the traccar.xml but as there was no change I also changed the default.xml to see if something happened.
  4. True, for a moment I thought it would be more practical, but you're right.
Anton Tananaev8 years ago
  1. It mean that you have enabled "debug" mode, which means that the steps weren't EXACTLY the same.
smsoousa8 years ago

Thanks for the feedback. Just one more question, is there any configuration material to host the nominatim?

Anton Tananaev8 years ago

Please do a search before asking questions:

http://wiki.openstreetmap.org/wiki/Nominatim/Installation

smsoousa8 years ago

Thank you, I will study and try to carry out the procedure, when any doubts arise, I will inform you.

Anton Tananaev8 years ago

Please don't inform me. Do a search first. If it's doesn't help, ask on relevant resources. Nominatim is not my project.