0
我收到一個錯誤,通知我超出了API配額。但是,我有150,000個請求的配額,並且只用了其中的12,000個。什麼導致了這個錯誤?的代碼Google Places API:OVER_QUERY_LIMIT
例如:
from googleplaces import GooglePlaces
api_key = ''
google_places = GooglePlaces(api_key)
query_result = google_places.nearby_search(location="Vancouver, Canada", keyword="Subway")
for place in query_result.places:
print(place.name)
錯誤消息:
googleplaces.GooglePlacesError: Request to URL https://maps.googleapis.com/maps/api/geocode/json?sensor=false&address=Vancouver%2C+Canada failed with response code: OVER_QUERY_LIMIT