Address by coordinates.

vdovin7 years ago

Anton, hello again:) I have faced with a problem with street name, which i should get by coordinates. So I think that this help to solve this problem https://www.traccar.org/forums/topic/address-is-not-saved-in-the-database/ , but this didn't worked for me.

So i tried to use nominatim :

<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>

So when i check my database(mysql) I see in table positions field address, but any record has null value at this field.
Also I checked url, so for example http://nominatim.openstreetmap.org/reverse?format=xml&lat=47.060821&lon=28.863214&zoom=18&addressdetails=1 , and as result I have address. So I guess, that there is some problem with url or parsing???

Anton Tananaev7 years ago

If you want to use Nominatim, you should use your own hosted server, or one of the paid providers. Official Nominatim server blocks Traccar, as far as I know.

vdovin7 years ago

I made an installer with your help and install it on a computer, so now i can connect it through agentmonitoring.com . But I also don't get any address in database, so I correctly understood your phrase "own hosted server"?

vdovin7 years ago

Also how could I see the request and response to reverse geocoding service? So I try to use gisgraphy besides nominatim, but without any success...

Anton Tananaev7 years ago

What I meant is that you have host own Nominatim server. I don't know what "agentmonitoring.com" is.

Gisgraphy free/demo service doesn't work with Traccar either.