Home:ALL Converter>Google places autocomplete widget using the Basic SKU but still getting charged

Google places autocomplete widget using the Basic SKU but still getting charged

Ask Time:2019-02-25T22:50:08         Author:sc1234

Json Formatter

I'm using the Google places autocomplete widget and since Google applied the billing changes the widget is becoming very costly to maintain. I have added the basic parameters which are supposed to be free but when I view the billing I'm still getting charged for the SKU: Autocomplete without Places Details – Per Session. This is the code I'm using:

var searchBox = new google.maps.places.Autocomplete(input);
searchBox.setFields(['place_id', 'name', 'types']);

So my question is, is there a way to get the autocomplete dropdown without getting charged with the new google places API?

Author:sc1234,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/54868784/google-places-autocomplete-widget-using-the-basic-sku-but-still-getting-charged
Angelica :

Please note that the setFields() method is only applicable when a user selects a place from the autocomplete suggestions. When a place is selected, a Places Details request is made which is the one that generates Data SKUs (Basic, Contact, and/or Atmosphere), depending on the fields that are specified in the request. If you specify Basic Data in your Places Details request, you will be billed for the Places Details request and not for any additional Data SKUs (like Atmosphere and Contact Data) when a user selects a place.\n\nIn your case you are only charged for all autocomplete requests and not with any Data SKU. To explain the charge that you got for SKU: Autocomplete without Places Details – Per Session, you are charged for this for the times when a user has not selected any place from the autocomplete suggestions within a few minutes of the beginning of the session. This happens when a user only types characters in the autocomplete input box but is not selecting any place from the search results.\n\nIf you have setup your billing account, you will be entitled to the recurring $200 monthly free credits. \nCurrently, since API requests are charged as per the pricing, if you want to stay in the free tier usage, you can cap your API usage by setting a daily limit to them. This is to avoid unexpected charges by limiting the number of API calls you can make per day.\n\nHope this clarifies it.",
2019-08-08T06:58:25
yy