Skip to content

Commit

Permalink
Document looking up a place
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelhorne committed Sep 13, 2018
1 parent a321303 commit 1551135
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions createdatabase.PL
Original file line number Diff line number Diff line change
Expand Up @@ -638,6 +638,7 @@ if(my $oa = $ENV{'OPENADDR_HOME'}) {
} else {
$city = $properties->{'sg:city'};
# Don't trust sg:city to be correct
# You can look up a place by https://spelunker.whosonfirst.org/id/$locality_id
my @hierarchy = @{$properties->{'wof:hierarchy'}};
if(scalar(@hierarchy) && (my $locality = $hierarchy[0]->{'locality_id'})) {
if(my $w = get_wof($wof_global_dbh, $locality)) {
Expand Down

0 comments on commit 1551135

Please sign in to comment.