why no of request is different from used limit in

2019-09-10 11:09发布

问题:

I have made request to google place API no of request is near about 1500-1600 but in used quota limit showing 15800 . I have verified my account.

request:

$baseurl = "https://maps.googleapis.com/maps/api/place/textsearch/json";  

why ?

回答1:

You are using a textSearch. Text Search has a 10 times multiplier. From the documentation:

The Google Places search services share the same usage limits. However, the Text Search service is subject to a 10-times multiplier. That is, each Text Search request that you make will count as 10 requests against your quota. If you've purchased the Google Places API as part of your Google Maps API for Work contract, the multiplier may be different. Please refer to the Google Maps API for Work documentation for details.