Skip to content

Commit

Permalink
Merge pull request #4 from bdon/master
Browse files Browse the repository at this point in the history
Fix missing rows from GeoNames cities1000.txt.
  • Loading branch information
thampiman committed Mar 28, 2015
2 parents f4046df + e3fbf92 commit 7ab5241
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reverse_geocoder/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def extract(self,local_filename):
print('Creating formatted geocoded file...')
writer = csv.DictWriter(open(local_filename,'wb'),fieldnames=RG_COLUMNS)
rows = []
for row in csv.reader(open(cities1000_filename,'rb'),delimiter='\t'):
for row in csv.reader(open(cities1000_filename,'rb'),delimiter='\t',quoting=csv.QUOTE_NONE):
lat = row[GN_COLUMNS['latitude']]
lon = row[GN_COLUMNS['longitude']]
name = row[GN_COLUMNS['asciiName']]
Expand Down

0 comments on commit 7ab5241

Please sign in to comment.