GooglePlacesSearchController icon indicating copy to clipboard operation
GooglePlacesSearchController copied to clipboard

Debounce the search field input or use sessions

Open ricsantos opened this issue 4 years ago • 0 comments

If the user is typing quickly, multiple requests are made to the /place/autocomplete endpoint. As Google charges per request, might be good to debounce or filter the keyboard input so that requests are made as soon as the user stops typing.

Alternatively, looking at the pricing page https://developers.google.com/places/web-service/usage-and-billing, it appears that a session can be used such that the /autocomplete request is free, and only the /details request is billed.

ricsantos avatar Sep 29 '20 07:09 ricsantos