Skip to content

Commit

Permalink
Continued to refactor the OpenStreetMap parser - still debugging, do …
Browse files Browse the repository at this point in the history
…not use this version
  • Loading branch information
nigelhorne committed Jan 26, 2024
1 parent e1b7009 commit 5348291
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions createdatabase.PL
Original file line number Diff line number Diff line change
Expand Up @@ -3880,6 +3880,17 @@ sub extract_osm_home
COUNTRY => $country
}
}
if(defined($name) && ($name !~ /,/) && defined($place) && ($name eq $place_fields[0]) && ($is_in eq 'Washington DC')) {
# name/place/is_in = Petworth/Petworth (Washington, D.C.)/Washington DC: TODO
# is_in will have been split into 2 by the space
my $country = 'US' if($file =~ /north-america/); # WA can be in US or Australia
die if(!defined($country));
return {
CITY => $name,
STATE => 'DC',
COUNTRY => $country
}
}
if(defined($name) && ($name !~ /,/) && ($is_in =~ /[,;]\sCanada/) && ($is_in =~ /[;,]/)) {
if(scalar(@is_in_fields) == 3) {
my $code;
Expand Down

0 comments on commit 5348291

Please sign in to comment.