Geocoding with python

One geocoder you can use is GEOPy.

To install it:

easy_install geopy

to use it with google geocoders:

>>> from geopy import geocoders
>>> g = geocoders.GoogleV3()
>>> place, (lat, lng) = g.geocode("1194 Colonia, Montevideo, Uruguay")
>>> print "%s: %.5f, %.5f" % (place, lat, lng)

Colonia 1194, Montevideo 11100, Uruguay: -34.90522, -56.19513

Leave a Reply

Your email address will not be published. Required fields are marked *