projects
/
migration-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
When Geonames has no data for a ZIP, use patron data even if --believegn
[migration-tools.git]
/
enrich_zips
diff --git
a/enrich_zips
b/enrich_zips
index
3c52e24
..
22fca06
100755
(executable)
--- a/
enrich_zips
+++ b/
enrich_zips
@@
-69,7
+69,7
@@
while (<>) {
}
if ($makezips) {
- if ($city ne $dbcity || $state ne $dbstate) {
+ if (defined $zips{$zip} && ($city ne $dbcity || $state ne $dbstate)) {
if ($believegn) {
$city = $dbcity;
$state = $dbstate;