flutter-geocoding icon indicating copy to clipboard operation
flutter-geocoding copied to clipboard

[Question]: Get the timeUntilReset

Open starshipcoder opened this issue 1 year ago • 1 comments

Please check the following before submitting a new issue.

Please select for which platform(s) you need help

  • [ ] Android
  • [X] iOS

Your question

Hi

I get this error in my log when too many request

[GEOXPC] Throttled "PlaceRequest.REQUEST_TYPE_GEOCODING" request: Tried to make more than 50 requests in 60 seconds, will reset in 1 seconds - Error Domain=GEOErrorDomain Code=-3 "(null)" UserInfo={details=( { intervalType = short; maxRequests = 50; "throttler.keyPath" = "app:com.starshipcoder.contactonmap/0x20302/short(default/any)"; timeUntilReset = 1; windowSize = 60; } ), requestKindString=PlaceRequest.REQUEST_TYPE_GEOCODING, timeUntilReset=1, requestKind=770}

Is there a way to get the timeUntilRequest ?

Regards

Version

2.0.1

starshipcoder avatar Jun 30 '23 14:06 starshipcoder

Hi @starshipcoder,

Thanks for raising this issue. At the moment it is not possible to access the timeUntilReset parameter. We are however planning to refactor the geocoding plugin exposing the native APIs instead of only a cross-platform abstraction. This should allow us to also expose a more detailed error object on iOS which in turn can expose the timeUntilReset parameter.

This however is not something that we'll release short term. I will leave this issue open so we are able to track progress.

mvanbeusekom avatar Jul 12 '23 13:07 mvanbeusekom