You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to geopy
Hello. I'm new to Geocoding and GIS in general, and geopy seems like
a great project. I've got geopy-0.94 and have been playing with the
Google Geocoder on the console, but I haven't got an API key. The
following code works just fine for me, and returns satisfactory
results:
>>> from geopy import geocoders
>>> g = geocoders.Google()
>>> g.geocode('Some address')
So my question is, do I really need an API key to use Google's
geocoder? The geocoders.Google docstring says the API key is required
for the maps/geo resource, which appears to be the default. Am I
missing something?
Thanks!
Mike Tigas
unread,
Jun 15, 2010, 2:10:33 AM6/15/10
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
So yes, you can get away with using GeoPy without an API key, but your
mileage may vary. My concern would be whether Google has a lower rate
limit (against your IP address) when using an invalid key — I’d play
it safe and grab a key, if possible. Since GeoPy is simply a frontend
to the API, by using the Google backend you’re still technically
required to abide by their terms of service: http://code.google.com/apis/maps/terms.html