7

I am using the new Place Autocomplete that is from the new static Google Places SDK client library (here). So it is really easy to use and I just got this tutorial and it is working as expected.

To add this in the project, I have to add following dependency in the Gradle file:

implementation ‘com.google.android.libraries.places:places:1.0.0’

I have been reading Google pricing/usage and billing, but I have not figured out the pricing of this new Autocomplete (library version). All I found was this, but to me it looks like it is for the web version, as I do not think the session needs to maintain this new client library version.

As I am not able to figure out pricing for the Places Auto complete (library version), is it free? Or if it is not free, what are billing criteria for this?

3

2 Answers 2

26

First of all, the new Google Place Autocomplete API is not free (after exceeding the US$200 monthly credit equivalent free usage).

Now coming to the pricing, Google has introduced three possible pricing criteria:

  1. Autocomplete without Places Details – Per Session
  2. Autocomplete (included with Places Details) – Per Session
  3. Autocomplete - Per Request

You might be wondering: What's the difference between session and request?

Session

The session begins when the user starts typing a query, and concludes when they select a place and a call to Place Details is made. If the user does not make a selection, the session will end after a short time out period.

Request If you don't go with a session-based approach, you'll get billed per search query.

For example, if you type "S", it will increase your request count, now you write one more character "Sa", and it will again increase your request count.

So, if you type the whole word "San Francisco", you'll get billed for 13 requests.

Benefits of using session

As mentioned in the above example, if you don't want to get charged per character that you write, you have an option to combine your search queries into a single session. That way you'll save some bucks to spend somewhere else.

So, the "San Francisco" whole string will be billed as one session request instead of multiple.

Please note that session price is always higher than per request price but it is decided in such a way that if you are heavily using the auto-complete in your project with lots of user-base, then ultimately, session-based pricing becomes cheaper than request-based pricing.

Usually, in my opinion, a session-based approach can be helpful only to those who are having heavy usage of autocomplete, otherwise, the request-based approach is fine.

To do the math, go to Google Pricing Table and scroll to Places.

1
  • 2
    good details, but I donot see how to manage session while working on autocomplete. in android
    – A.s.ALI
    May 28, 2019 at 5:14
4

It costs less than US$3 for 1000 requests, but as a user you have US$200 monthly credit equivalent free usage, so the API is free as long as you don't exceed this.

Perhaps this pricing table would be helpful.

3
  • once that free credit goes away, a lot of amateur app devs will be screwed once again.
    – lasec0203
    Sep 3, 2019 at 10:27
  • 200$ is so small. I just test code, it call ~ 3000 places request May 15, 2020 at 14:23
  • 9
    200$ is so small. I just test code, it call ~ 3000 places request May 15, 2020 at 14:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.