diff --git a/flaskr/geocoder.py b/flaskr/geocoder.py index bc26504..c798a3d 100644 --- a/flaskr/geocoder.py +++ b/flaskr/geocoder.py @@ -1,14 +1,15 @@ -import geopy import shelve import time +import geopy + from flaskr.core import get_path class CachedGeocoder: def __init__(self, source="Nominatim", geocache="geocache.db"): - self.geocoder = getattr(geopy.geocoders, source)() + self.geocoder = getattr(geopy.geocoders, source)(scheme='http') self.cache = shelve.open(get_path(geocache), writeback=True) # self.timestamp = time.time() + 1.5 -- libgit2 0.21.2