X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/db9cc270b3ec7473d9e1fbd750cc4f0e2e0c042a..d442bf904b68d26dd7daf62746919475ce5a151a:/lib/Geocode.php diff --git a/lib/Geocode.php b/lib/Geocode.php index 69b6f41c..6589f754 100644 --- a/lib/Geocode.php +++ b/lib/Geocode.php @@ -18,7 +18,7 @@ class Geocode protected $aLangPrefOrder = array(); protected $aExcludePlaceIDs = array(); - protected $bReverseInPlan = false; + protected $bReverseInPlan = true; protected $iLimit = 20; protected $iFinalLimit = 10; @@ -650,6 +650,8 @@ class Geocode $this->oNormalizer ); + $oCtx->setFullNameWords($oValidTokens->getFullWordIDs()); + // Try more interpretations for Tokens that could not be matched. foreach ($aTokens as $sToken) { if ($sToken[0] == ' ' && !$oValidTokens->contains($sToken)) {