Skip to content

Commit

Permalink
Modifiy the range of address_rank, fix for issue osm-search#164
Browse files Browse the repository at this point in the history
  • Loading branch information
joy-yyd committed Jul 8, 2020
1 parent 7ecfcf7 commit cac8a8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/SearchDescription.php
Expand Up @@ -657,7 +657,7 @@ private function queryNamedPlace(&$oDB, $iMinAddressRank, $iMaxAddressRank, $iLi
}

if ($this->sHouseNumber) {
$aTerms[] = 'address_rank between 16 and 27';
$aTerms[] = 'address_rank between 16 and 30';
} elseif (!$this->sClass || $this->iOperator == Operator::NAME) {
if ($iMinAddressRank > 0) {
$aTerms[] = "((address_rank between $iMinAddressRank and $iMaxAddressRank) or (search_rank between $iMinAddressRank and $iMaxAddressRank))";
Expand Down

0 comments on commit cac8a8d

Please sign in to comment.