Not consistent reverse geocoding on trips report

Rafael Miquelino 5 years ago

Hi,

I’m using LocationIQ as my reverse geocoding provider and everything works fine when I click on “Show address” in the device state panel. However when I generate a trip report, the result is very inconsistent, I get the start and finish address for some trips but most of them are missing. Does anyone have an idea of what could be happening?

Please check a screenshot of a report I generated from my server: https://ibb.co/f8V7pxg

Anton Tananaev 5 years ago

Most likely that means your provider failed. Are you aware that LocationIQ has per second limits?

Rafael Miquelino 5 years ago

Yes, I was wondering if there was some missing configuration in my Traccar instance but the rate limiter is most likely the issue here, LocationIQ has a limit of 2 requests per second. Thanks.

Rafael Miquelino 5 years ago

Hi again, so the issues was really with the 2 requests per second. Due to that I changed my provider to mapbox that provides a more flexible rate limitation (600 req/min) on the free tier. As this provider is not available in the current Traccar version (4.12), I added the support to that and issue the PR #4656. Hope that can be also useful for other users. Thanks.

Navneet Choudhary 2 years ago

Hi,

trips api is taking too long time to respond because it need to resolve address via reverse geocoding. Can we disable geocoding to make it faster and i can handle address later in mobile application level so that it wont block whole api flow.

Anton Tananaev 2 years ago

Yes. There's a configuration parameter for it already.