Open ricsantos opened 4 years ago
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.
/place/autocomplete
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.
/autocomplete
/details
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.