Tag Archives: geocoding

Need to geocode some addresses? Here’s a five-lines-of-code solution based on “An A-Z of useful Python tricks” by Peter Gleeson:

from geopy import GoogleV3
place = "Krems an der Donau"
location = GoogleV3().geocode(place)

For more info, check out geopy:

geopy is a Python 2 and 3 client for several popular geocoding web services.
geopy includes geocoder classes for the OpenStreetMap Nominatim, ESRI ArcGIS, Google Geocoding API (V3), Baidu Maps, Bing Maps API, Yandex, IGN France, GeoNames, Pelias,, OpenMapQuest, PickPoint, What3Words, OpenCage, SmartyStreets, GeocodeFarm, and Here geocoder services.

I used to go to for geocoding address lists, but last time I visited, I couldn’t find where to download the resulting list with lat/lon values.

Luckily, there’s another service available that will do: They offer several options for geocoding: single address, address list, and a service for tabular data. Like, they use Yahoo’s geocoding API to do the actual work.

%d bloggers like this: