Google Places API on Android - API_KEY for Individual Users

I looked at the Android documentation and other blogs related to using the Places API in an Android app. Everywhere it is suggested to use API_KEY to call the REST service. API_KEY is the same throughout the project / application. There is a limit of 1000 requests per day.

Now, if my application is installed by many users, then the limit of the request will be easily exhausted if the same key is used by all.

One could create API_KEY for an individual user. But how can I take care of this in my code?

+4
source share
1 answer

You can get a quota of 100,000 requests per day if you confirm your identity:

Users who verified their identity using the API console allowed 100,000 requests in 24 hours. Credit card required. to verify by enabling billing in the console. We ask you for a credit card to verify your identity. Your map will not be used by Places APIs.

You will find this information and much more if you go to the Google APIs Console, select "Services" and click on the "Pricing" link in the "Location addresses" line.

100,000 requests per day are many and should be sufficient if your application is not extremely popular. And I don’t think that creating multiple users to create multiple API keys will be possible without violating Google’s terms and conditions.

+10
source

Source: https://habr.com/ru/post/1438463/


All Articles