slimkrazy / python-google-places

Simple wrapper around the new 'experimental' Google Places API
MIT License
461 stars 167 forks source link

OVER_QUERY_LIMIT #98

Closed rileyhun closed 7 years ago

rileyhun commented 7 years ago

I am getting an error notifying that I am over the query limit even though I haven't sent any requests today. When I call the url directly, it seems to return the json output just fine.

Code sample:

from googleplaces import GooglePlaces, types, lang

api_key = ''

google_places = GooglePlaces(api_key)
query_result = google_places.nearby_search(sensor=True,
    location="London, England", keyword="Subway")

Error Message: googleplaces.GooglePlacesError: Request to URL https://maps.googleapis.com/maps/api/geocode/json?sensor=false&address=London%2C+England failed with response code: OVER_QUERY_LIMIT

slimkrazy commented 7 years ago

Ah - I believe I know the issue here. I'll take a look this evening.

slimkrazy commented 7 years ago

Just created a PR with this fix in: https://github.com/slimkrazy/python-google-places/pull/100

slimkrazy commented 7 years ago

@rileyhun You want to try the code in master before I go ahead and submit the fix to pypi?

malioni91 commented 7 years ago

First of all @slimkrazy great job! The wrapper is great. However, I am having the same issue of OVER_QUERY_LIMIT. When I install from the repo's master, I get a REQUEST_DENIED error... Did you guys fix the issue?

slimkrazy commented 7 years ago

Hey @malioni91,

Have you tried the code in the master branch? I've not yet pushed that to pypi, but the issue should be resolved.

Please try and let me know how you get on.

slimkrazy commented 7 years ago

@malioni91 Oh my - you have to forgive me for not reading your comment correctly! I'm currently on vacation, laying on a beach ;)

Sounds like you have not activated the geocoding API in the Google console. I think I added a note about that in the readme - if not, I'll do it tonight.