the coordinates are being decoded every time both in the web api and reports
What does this mean exactly? It seems like it's exactly how it should work.
I need the web API to display "Show Address".
The reports should display the decoded address.
My understanding is that this is the default behavior as well, according to the documentation:
By default reverse geocoding is only done when user requests reports or explicitly clicks "show address" button in the app. You can disable this behavior using the following parameters:
<entry key='geocoder.onRequest'>false</entry>
<entry key='geocoder.ignorePositions'>false</entry>
Still, by setting those two keys to true
or even removing them from the config, the coordinates are always being decoded both in the web api and the reports as well.
Disabling these parameters will enable old behavior, which is do geocoding automatically when you receive locations.
Yes, this is what the documentation says as well.
However, this is not working and all records are being decoded both in the API and the Reports:
<entry key='geocoder.onRequest'>true</entry>
<entry key='geocoder.ignorePositions'>true</entry>
You have not provided enough context to say whether it's correct or not. It depends on the API. It depends what the configuration was at the given period of time. etc
I am testing right now, with the settings below:
<entry key='geocoder.onRequest'>true</entry>
<entry key='geocoder.ignorePositions'>true</entry>
Expected behavior:
Actual behavior:
So setting those two settings to true
works incorrectly and I wonder why.
You still didn't say which API and which report. They will work differently depending on the type.
Trips report.
Tested with TomTom, LocationIQ and Nominatim with Openstreetmap.
Same results.
This is expected. geocoder.onRequest
set to true
will automatically do geocoding on the trips report request.
So for trips report, what setting should I set so that:
Trips in web API to display "Show Address".
Trips excel report display the decoded address.
No, both should have the address.
And the same for the positions?
This setting<entry key='geocoder.ignorePositions'>false</entry>
will NOT decode positions automatically?
It's the opposite. If you set ignorePositions
to true
, it will NOT do geocoding for positions automatically. If you set it to false
, it will.
got it, thanks Anton! Maybe worth fixing on the Geocoding page:
Due to slowly running reports, I had to change the reverse geocoding provider. Now I run into a strange issue, where the
geocoder.onRequest = true
setting is not being taken into account - the coordinates are being decoded every time both in the web api and reports.I tired setting both
geocoder.onRequest
andgeocoder.ignorePositions
totrue
andfalse
, no difference whatsoever.I also cleared cache and tried different providers like tomtom and locationiq, no difference.
Here are my settings:
The XML is valid, so it's not a schema error.
Any ideas what could be wrong?