Search code examples
pythongeocodinggeopy

GeoPy: GeocoderQuotaExceeded error


I just started using GeoPy. I need to convert a given location to latitude and longitude. However I am getting a GeocoderQuotaExceeded error. I just followed the example given in the documentation. Any help would be greatly appreciated.

from geopy.geocoders import GoogleV3
geolocator = GoogleV3()
address, (latitude, longitude) = geolocator.geocode("175 5th Avenue NYC")
GeocoderQuotaExceeded: The given key has gone over the requests limit in the 24 hour     period or has submitted too many requests in too short a period of time

This happened on the first request itself. i had not made any other requests ever. This was the first time I was using the application.


Solution

  • From my comments on the OP...

    This implies that you've used up your quota from Google.

    Have you set up your own Api key and checked that you're not exceeding your allowance? I assume it's using this service under the hood.

    NB: If there's someone else with the same public IP using the service (University, Same company, etc) and you're not using an API key, that might account for you getting less than the 2,500 free uses.