Did you mean to set this?
<entry key='geocoder.ignorePositions'>false</entry>
I'm also not sure why you're using nominatim
type with LocationIQ.
because in the traccar docs it says to use that type.
I've tried with and without ignore positions. that's just to keep the number of API requests down a bit
Does home assistant support dynamic "show address" option?
dunno. not got that far yet. but locationiq is saying that there have been no attempts to access the API and there is zero references to geocoding in the logs of traccar. so let's ignore home assistant for now
I thought it works without home assistant.
well I'll be honest I'm unsure how it should "appear to work" within traccar? I have always been able to "show address" on the window of the tracker object and it will show the street. this worked before I even added any of the config lines for geocoding. but the lack of actually attempting to use the API is clearly a pointer to something not even working. what's the "type" if not the documented nominatim then?
What happens now if click show address? Have you checked the network call?
I don't know what you mean by network call. as I say , if I click show address it works fine and it did before I even added the geocoding config settings
So then it's working as expected. What exactly is the problem?
I'm a bit confused by your response. If the system is "working," then could you please clarify what role the reverse geocoding configuration settings are meant to serve? If it is "working" even without the geocoding settings even being in the config file?
I've already explained the issue several times, and I've also asked repeatedly what I should expect to see in the Traccar GUI that would confirm reverse geocoding is functioning correctly.
At the moment, there's no indication in the Traccar logs that it’s even attempting to use the LocationIQ geocoding API, and the API logs on the LocationIQ side also show no activity from my installation. That seems like a clear indication that reverse geocoding isn’t working at all.
From my understanding, the logs should show an attempt to convert GPS coordinates into street addresses each time a location update is received — but that's not happening.
If I’m missing something or configuring this incorrectly, I’m more than happy to be corrected. My main goal is simply to have the address show up in my Home Assistant setup, but that’s currently not happening.
I understand English might not be your first language, and I appreciate that my description may be difficult to follow — thank you for your patience.
There's a default reverse geocoding configuration, which will work even if you don't provide anything.
Now about your configuration, there's an easy way to check whether it's working on not. You change the URL or the key to something invalid and see if you still get a result. If not, it means Traccar is using your configuration. If it's still working, it means you're doing something completely wrong, like using wrong config file or maybe not restarting the service or something along those lines.
ok I'll check that but it's 100% not the latter as mentioned in previous replies and hence reaching out on here to get ideas on what I could have possibly done wrong
ok changed the key and URL and nothing in logs
right so...
I wasn't testing with "show address"
with nominatim as the "type" or locationiq (i just guessed at this since I can't find anywhere in the docs or anything what it SHOULD be for using locationiq) it works with "show address".
If i change the url or api key using either type, the "show address" doesn't work.
so, i'm still baffled. I've only just realised but you are the dev of the product. which makes me even more confused that its not working if you believe it "should be".
and just so i don't need to repeat myself for the millionth time, yes it's 100% using this config file and yes I restarted the docker container each time i change it (as demonstrated by things not working at all when i made the above changes)
It is and was before I added the config items below, working when i clicked on the "show address", but it wasn't showing anything in my home assistant at all.
so i added the following after creating an account with locationiq.
<entry key='geocoder.enable'>true</entry> <entry key='geocoder.type'>nominatim</entry> <entry key='geocoder.url'>https://eu1.locationiq.com/v1/reverse.php</entry> <entry key='geocoder.key'>xxxxxxxxxxx</entry> <entry key='geocoder.onRequest'>false</entry> <entry key='geocoder.format'>%h %r, %t, %s, %c</entry> <entry key='geocoder.reuseDistance'>10</entry>
but nothing seems to have changed. it still shows unknown within home assistant, i see nothing in the logs, and no attempts to the locationiq api according to my locationiq dashboard!!
I've (inadvertently) rebuilt the whole docker container again (due to didn't realize I also needed a volume mapping for the data folder).
What can i be doing wrong?