On demand reverse geocoding not saving addrrsses
When running a trips report the on demand reverse geocoding works great but if I run that report again it has to request them addresses again.
It would be great if we could save these to save requests and costs.
As a partial solution, you can enable geocoder cache (geocoder.cacheSize). It is in memory address cache, works until server restart.
It might help to save you some requests.
Hi @Abyss777, when running a routes report the addresses all come back as undefined.
Is it possible to request these when running the report the same as the trips report works?
Thanks
No, it is currently not implemented. Why do you need this? Such reports will produce a lot of geocoding requests and slow down route report generating.
It still works out cheaper in the long run to request these and save them instead of saving every address that comes into the server.
Would it be possible to implement this and turn it on/off using a parameter in the config?
Thanks

As you can see the amount of reverse geocoding is considerably less since I have implemented your changes to work with onrequest which is great.
I still do not understand why do you need address in every position in Route report? You can click on desired and request it, but why you need all?
I do get what you are saying but some users/use cases are different from what you imagine.
Would this be something you would be willing to implement?
Doing reverse geocoding for every location would most likely cause request to timeout in browser because it will require a lot of requests to third party service.
It doesn't look like there's much interest. What is the use case to requesting same reports repeatedly?
When running large reports it often failed. Instead of having to run the geocoder everytime it could of saved it.
I think if we get an address for coordinates at any stage it should be saved in the database for future reference
If you have failing reports, it should probably be fixed first instead. Is there any other valid reason?
I run my own custom reports on data extracted from Traccar. We use a Nominatim local database for reverse coding, installed on the same server. Much faster than lookups across the internet.