You have exceeded your daily request quota for this API. Google Places API iOS Swift

纵饮孤独 提交于 2019-11-29 03:00:20

问题


I am trying to use Google Places API in a very simple app. I just want to locate all the shopping malls near the current location. I used this web service:

https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=12.9412390245245,77.6171295438685&radius=1000&sensor=true&types=shopping_mall&key=MY_SERVER_KEY

It was working, but now I am getting the following error message:

{
   "error_message" : "You have exceeded your daily request quota for this API.",
   "html_attributions" : [],
   "results" : [],
   "status" : "OVER_QUERY_LIMIT"
}

How can I avoid this? Also, while creating server key, I did not provide any IP address, as I don't have any server. I don't want to pay anything for this simple service. Is there anyway we can avoid it or any other free alternative?


回答1:


as per following link https://developers.google.com/maps/documentation/geocoding/usage-and-billing

only one daily request quota for this API. otherwise billing compulsory.




回答2:


Almost every Google API has a daily free quota. For Google Places API it's 2500 requests per day and 10 requests per second. If you want to use more than that, I would suggest to enable billing. If you still want to use the free quota, please wait for a day to get those 2500 requests again.

P.S. : The quota is based on specific accounts. Please make your own API key using Google API console if you're using a random one.

Hope it helps.




回答3:


here is your answer link

@engin-kurutepe Have answered it very well .

He writes "Make sure that you're not hitting the Google API too fast. They don't limit the total number of requests but the rate of requests. About 10 requests per second is more or less the fastest you're allowed to hit their APIs."

Hope this Helps!




回答4:


You can try FourSquare API, Its free, but it requires the users location to find places and thats good for near by places, its NOT good for searching for places far away.



来源:https://stackoverflow.com/questions/38216519/you-have-exceeded-your-daily-request-quota-for-this-api-google-places-api-ios-s

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!