Skip to content

Commit

Permalink
add ISO codes and WOE hierarchy
Browse files Browse the repository at this point in the history
  • Loading branch information
thisisaaronland committed Sep 5, 2012
1 parent f0e9437 commit bac1a20
Show file tree
Hide file tree
Showing 12,024 changed files with 405,023 additions and 13,482 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
5 changes: 3 additions & 2 deletions bin/generate-meta.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
lookup_fh = open(lookup_path, 'w')

writer = csv.writer(lookup_fh)
writer.writerow(('fid', 'woeid', 'places'))
writer.writerow(('fid', 'woeid', 'iso', 'places', 'foundry'))

for root, dirs, files in os.walk(datadir):

Expand All @@ -40,8 +40,9 @@

fid = props.get('ne:fid', 0)
woeid = props.get('woe:id', 0)
iso = props.get('iso', '')
places = props.get('ne:hasPlace', 0)

foundry = props.get('artisanal:foundry', '')

writer.writerow((fid, woeid, places, foundry))
writer.writerow((fid, woeid, iso, places, foundry))
Loading

0 comments on commit bac1a20

Please sign in to comment.