From d7a1f2a537424c455812c49e703fad8b258e8c82 Mon Sep 17 00:00:00 2001 From: "james.p.turk" Date: Thu, 17 Jan 2008 20:11:02 +0000 Subject: [PATCH] fixe optional geocoder param git-svn-id: https://polipoly.googlecode.com/svn/trunk@14 1885ebd5-0a40-0410-88a4-770918bee656 --- examples/address_to_district.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/examples/address_to_district.py b/examples/address_to_district.py index 369a45a..1af0159 100755 --- a/examples/address_to_district.py +++ b/examples/address_to_district.py @@ -20,7 +20,6 @@ import re from polipoly import AddressToDistrictService, GeocodingError PATH_TO_CDFILES = 'congdist/cd99_110' -GEOCODER = AddressToDistrictService.GEOCODER_US GMAPS_API_KEY = None class ApiException(Exception): @@ -65,7 +64,7 @@ def main(): raise ApiException(305) # create service and get a district - service = AddressToDistrictService(PATH_TO_CDFILES, GEOCODER, GMAPS_API_KEY) + service = AddressToDistrictService(PATH_TO_CDFILES, geocoder, GMAPS_API_KEY) try: lat, lng, districts = service.address_to_district(addr) except GeocodingError, ge: