Reverse geocoding

unky8 years ago

How to check is reversegeocoding is enabled and requests are sent to geocoder server?
I set configuration like this:

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

but I do not get streets name in WebGui. I would like to check if request are sent. How to check it?

Anton Tananaev8 years ago

First of all, you should be using "reversegeocoding", not "streetsearch". Secondly, you should not be using "services.gisgraphy.com" server. Either use your own server, or some paid service.

unky8 years ago

So there is a mistake in documentation.
Look at this:
https://www.traccar.org/reverse-geocoding/
and Gisgraphy section.
There is example with "streetsearch" not "reversegeocoding"

Anton Tananaev8 years ago

Thanks for pointing it out. Fixed the documentation.

unky8 years ago

I have change entry to:

 <entry key='geocoder.url'>http://services.gisgraphy.com/reversegeocoding/search</entry>

Now, where can I check in logfiles to see if reverse geocoding work correctly?
When I click on device I still have no Address.

Anton Tananaev8 years ago

It won't show anything in the log. At least in current version. Next release will have some more logging for geocoding and geolocation.

As I said, you shouldn't be using "services.gisgraphy.com". Did you read my previous comments?

unky8 years ago

Yes, I read Your message. I would like to do it only for test purpose to check if it works, than I plan to install my custom server for reverse geocoding. But first I have to be sure if it really works.
Uptill now when I request directly from the browser:
http://services.gisgraphy.com/reversegeocoding/search?format=json&lat=53.12163&lng=18.0018&from=1&to=1
I have got corrct address.
But it does not work in traccar so I ask if there is some kind of logs to see if it works.

Anton Tananaev8 years ago

Well, my theory is that people "tested" it too much, so Gisgraphy free server doesn't work for Traccar anymore. It's likely that they banned User-Agent used by Traccar server requests.

unky8 years ago

OK, so it is impossible to test it with gisgraphy server?
Best way would be check what is a repsonse when traccar send request to gisgraphy. Is it possible to Yu to check it and confirm definitely that it does not work?

Anton Tananaev8 years ago

I have already tested it before and didn't get any results. It doesn't return any reason, so I don't know why it doesn't work.

unky8 years ago

I have just recompiled Your code and dump response from gisgraphy.
I got such response:

401 Authorization Required ------------------------------------ nginx

So now it is clear why it does not work.