DenisCarriere / geocoder

:earth_asia: Python Geocoder
http://geocoder.readthedocs.org
MIT License
1.62k stars 286 forks source link

Out of date quota behaviors for Google API #375

Open Samcfuchs opened 5 years ago

Samcfuchs commented 5 years ago

The Google geocoding method seems to have a limit set at 2500 API calls. Presumably this is in order to enforce Google's old 2500 QPD limit. Seeing as that limit has since been removed, it seems the library should be updated to stay up to date by removing its enforcement of that limit.

JiayueShi commented 5 years ago

Yeah, I also met the same problem. Hope it fixed soon!

newfrontier1 commented 5 years ago

Google now requires an API key and enabled billing for each project. link

Extend the range of 'key' parameter values to accept manual input for API keys, then commit.

avallbona commented 5 years ago

Hi there, i think the module already provide this feature. In the file "keys.py" it's trying to pull from the environment the folling vars:

google_key = os.environ.get('GOOGLE_API_KEY') google_client = os.environ.get('GOOGLE_CLIENT') google_client_secret = os.environ.get('GOOGLE_CLIENT_SECRET')

iostreamatlab commented 5 years ago

arcgis can be finished.

import geocoder g = geocoder.arcgis('San Francisco, CA') print g.latlng

[37.777120000000025, -122.41963999999996] [Finished in 2.1s]